Merge pull request #162985 from trofi/fix-ufoai-underlinking

This commit is contained in:
Sandro 2022-03-09 16:17:08 +01:00 committed by GitHub
commit cef4c12411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,13 @@ stdenv.mkDerivation rec {
curl libjpeg libpng gettext cunit
];
NIX_CFLAGS_LINK = "-lgcc_s"; # to avoid occasional runtime error in finding libgcc_s.so.1
NIX_CFLAGS_LINK = [
# to avoid occasional runtime error in finding libgcc_s.so.1
"-lgcc_s"
# tests are underlinked against libm:
# ld: release-linux-x86_64/testall/client/sound/s_mix.c.o: undefined reference to symbol 'acos@@GLIBC_2.2.5'
"-lm"
];
meta = {
homepage = "http://ufoai.org";