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:
parent
ca3ab55a5c
commit
e20f1a62d3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue