guile: fix static build

This commit is contained in:
Dmitry Bogatov 2020-11-28 00:00:00 -05:00
parent 29b658e67e
commit 507369bf27

View file

@ -58,7 +58,8 @@
# "libgcc_s.so.1 must be installed for pthread_cancel to work". # "libgcc_s.so.1 must be installed for pthread_cancel to work".
# don't have "libgcc_s.so.1" on darwin # don't have "libgcc_s.so.1" on darwin
LDFLAGS = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s"; LDFLAGS = stdenv.lib.optionalString
(!stdenv.isDarwin && !stdenv.hostPlatform.isStatic) "-lgcc_s";
configureFlags = [ "--with-libreadline-prefix=${readline.dev}" ] configureFlags = [ "--with-libreadline-prefix=${readline.dev}" ]
++ stdenv.lib.optionals stdenv.isSunOS [ ++ stdenv.lib.optionals stdenv.isSunOS [