forked from rarias/jungle
Fix cross compilation for lmbench
This commit is contained in:
parent
93e94cd370
commit
a8bfb6dcd7
@ -22,7 +22,11 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
buildInputs = [ libtirpc ];
|
||||
patches = [ ./fix-install.patch ./gcc-14.patch ];
|
||||
patches = [
|
||||
./fix-install.patch
|
||||
./gcc-14.patch
|
||||
./fix-cross.patch
|
||||
];
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
|
||||
@ -35,6 +39,8 @@ stdenv.mkDerivation rec {
|
||||
CFLAGS=-Wno-implicit-int
|
||||
CPPFLAGS=-I${libtirpc.dev}/include/tirpc
|
||||
LDFLAGS=-ltirpc
|
||||
CC=${stdenv.cc.targetPrefix}cc
|
||||
AR=${stdenv.cc.targetPrefix}ar
|
||||
)
|
||||
'';
|
||||
|
||||
|
13
pkgs/lmbench/fix-cross.patch
Normal file
13
pkgs/lmbench/fix-cross.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index 2555014..356eeb3 100644
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -36,7 +36,7 @@ SHELL=/bin/sh
|
||||
|
||||
CC=`../scripts/compiler`
|
||||
MAKE=`../scripts/make`
|
||||
-AR=ar
|
||||
+AR?=ar
|
||||
ARCREATE=cr
|
||||
|
||||
# base of installation location
|
Loading…
x
Reference in New Issue
Block a user