parent
c2ca5c057d
commit
fe37684525
17
pkgs/development/libraries/luaffi/darwin.patch
Normal file
17
pkgs/development/libraries/luaffi/darwin.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index b2b5f2c..b690a5d 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -18,10 +18,10 @@ test:
|
||||||
|
if [ `uname` = "Darwin" ]; then $(MAKE) test_macosx; else $(MAKE) test_posix; fi
|
||||||
|
|
||||||
|
macosx:
|
||||||
|
- $(MAKE) posix "SOCC=MACOSX_DEPLOYMENT_TARGET=10.3 $(CC) -dynamiclib -single_module -undefined dynamic_lookup $(SOCFLAGS)"
|
||||||
|
+ $(MAKE) posix "SOCC= $(CC) -dynamiclib -single_module -undefined dynamic_lookup -Wl,-install_name,$(PREFIX)/lib/$(MODSO) $(SOCFLAGS)"
|
||||||
|
|
||||||
|
test_macosx:
|
||||||
|
- $(MAKE) test_posix "SOCC=MACOSX_DEPLOYMENT_TARGET=10.3 $(CC) -dynamiclib -single_module -undefined dynamic_lookup $(SOCFLAGS)"
|
||||||
|
+ $(MAKE) test_posix "SOCC= $(CC) -dynamiclib -single_module -undefined dynamic_lookup -Wl,-install_name,$(PREFIX)/lib/$(MODSO) $(SOCFLAGS)"
|
||||||
|
|
||||||
|
posix: $(MODSO) test_cdecl.so
|
||||||
|
|
@ -12,9 +12,9 @@ stdenv.mkDerivation {
|
|||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ lua ];
|
buildInputs = [ lua ];
|
||||||
|
|
||||||
patches = [
|
patches = [ ./darwin.patch ./makefile-errors.patch ];
|
||||||
./makefile-errors.patch
|
|
||||||
];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user