Put LFLAGS last for linker

For some reason, some versions of the GNU linker will fail to find libraries
if the -l flags are listed before the .o files to be linked.
This commit is contained in:
Lassi Kortela 2019-08-28 00:29:20 +03:00
parent ca3ab55a5c
commit e20f1a62d3
1 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ $CC $CFLAGS -c ../c/time_unix.c
$CC $CFLAGS -c ../c/utf8.c
$CC $CFLAGS -c ../c/boot_image.c
$CC $LFLAGS -o upscheme $o_files
$CC -o upscheme $o_files $LFLAGS
{ set +x; } 2>/dev/null
cd ../scheme-core
@ -134,7 +134,7 @@ echo "Entering directory '$PWD'"
set -x
$CC $CFLAGS -c ../c/boot_image.c
$CC $LFLAGS -o upscheme $o_files
$CC -o upscheme $o_files $LFLAGS
{ set +x; } 2>/dev/null
cd ../scheme-core
@ -151,7 +151,7 @@ echo "Entering directory '$PWD'"
set -x
$CC $CFLAGS -c ../c/boot_image.c
$CC $LFLAGS -o upscheme $o_files
$CC -o upscheme $o_files $LFLAGS
{ set +x; } 2>/dev/null
cd ../scheme-tests