racket: fix shared library build

This commit is contained in:
Jörg Thalheim 2017-08-26 20:12:07 +01:00
parent 8dc06a2385
commit 5ae506e94a

View File

@ -47,12 +47,14 @@ stdenv.mkDerivation rec {
buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ]; buildInputs = [ fontconfig libffi libtool makeWrapper sqlite ];
preConfigure = '' preConfigure = ''
unset AR
substituteInPlace src/configure --replace /usr/bin/uname ${coreutils}/bin/uname substituteInPlace src/configure --replace /usr/bin/uname ${coreutils}/bin/uname
mkdir src/build mkdir src/build
cd 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 disableDocs [ "--disable-docs" ]
++ stdenv.lib.optional stdenv.isDarwin [ "--enable-xonx" ]; ++ stdenv.lib.optional stdenv.isDarwin [ "--enable-xonx" ];