forked from mirrors/nixpkgs
Merge pull request #101031 from r-burns/spooles
spooles: fix build on darwin
This commit is contained in:
commit
c873f13eac
|
@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
|
|||
./spooles.patch
|
||||
];
|
||||
|
||||
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
substituteInPlace makefile --replace '-Wl,-soname' '-Wl,-install_name'
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make lib
|
||||
'';
|
||||
|
|
|
@ -166,7 +166,7 @@ index f014c7d..7c8042a 100755
|
|||
#cd MPI ; make lib
|
||||
-#cd MT ; make lib
|
||||
+ cd MT ; make lib
|
||||
+ gcc -shared */*/*.lo -Wl,-soname,libspooles.so.2.2 -o libspooles.so.2.2 -lpthread -lm
|
||||
+ $(CC) -shared */*/*.lo -Wl,-soname,libspooles.so.2.2 -o libspooles.so.2.2 -lpthread -lm
|
||||
+ ln -s libspooles.so.2.2 libspooles.so
|
||||
|
||||
global :
|
||||
|
|
Loading…
Reference in a new issue