mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
racket: fix shared library build
This commit is contained in:
parent
8dc06a2385
commit
5ae506e94a
|
@ -47,12 +47,14 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ];
|
||||
|
||||
preConfigure = ''
|
||||
unset AR
|
||||
substituteInPlace src/configure --replace /usr/bin/uname ${coreutils}/bin/uname
|
||||
mkdir src/build
|
||||
cd src/build
|
||||
'';
|
||||
|
||||
configureFlags = [ "--enable-lt=${libtool}/bin/libtool" ]
|
||||
shared = if stdenv.isDarwin then "dylib" else "shared";
|
||||
configureFlags = [ "--enable-${shared}" "--enable-lt=${libtool}/bin/libtool" ]
|
||||
++ stdenv.lib.optional disableDocs [ "--disable-docs" ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin [ "--enable-xonx" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue