build: Use libgcc.a instead of libmescc.a for gcc.

This commit is contained in:
Danny Milosavljevic 2020-08-29 12:50:34 +02:00 committed by Jan (janneke) Nieuwenhuizen
parent afac5847e7
commit 0b79ca74ea
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -55,7 +55,10 @@ if test $mes_libc = system; then
fi
if [ "$compiler" = "gcc" ]
then
LIBS="${LIBS} -lmescc"
# Make it possible to resolve raise(), required by libgcc.a, provided in
# libc.a. The final command line has to have "-lc -lgcc -lc".
# See <https://www.openwall.com/lists/musl/2018/05/09/1>.
LIBS="${LIBS} -lgcc -lc"
fi
link bin/mes-$compiler
cp bin/mes-$compiler bin/mes