mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
crypto++: fix build issue on OSX (10.9.5 at least)
This commit is contained in:
parent
356236832d
commit
73f0339c35
13
pkgs/development/libraries/crypto++/GNUmakefile.patch
Normal file
13
pkgs/development/libraries/crypto++/GNUmakefile.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
--- crypto++/GNUmakefile 2013-02-20 10:30:52.000000000 -0500
|
||||||
|
+++ crypto++/GNUmakefile 2015-05-07 18:34:25.000000000 -0500
|
||||||
|
@@ -87,8 +87,8 @@
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(UNAME),Darwin)
|
||||||
|
-AR = libtool
|
||||||
|
-ARFLAGS = -static -o
|
||||||
|
+AR = ar
|
||||||
|
+ARFLAGS = cru
|
||||||
|
CXX = c++
|
||||||
|
IS_GCC2 = $(shell $(CXX) -v 2>&1 | $(EGREP) -c gcc-932)
|
||||||
|
ifeq ($(IS_GCC2),1)
|
|
@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0x1mqpz1v071cfrw4grbw7z734cxnpry1qh2b6rsmcx6nkyd5gsw";
|
sha256 = "0x1mqpz1v071cfrw4grbw7z734cxnpry1qh2b6rsmcx6nkyd5gsw";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = stdenv.lib.optional (stdenv.system != "i686-cygwin") ./dll.patch;
|
patches = (stdenv.lib.optional (stdenv.system != "i686-cygwin") ./dll.patch)
|
||||||
|
++ (stdenv.lib.optional stdenv.isDarwin ./GNUmakefile.patch);
|
||||||
|
|
||||||
buildInputs = [ unzip libtool ];
|
buildInputs = [ unzip libtool ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue