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 New Issue
Block a user