mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-09-20 04:17:38 +03:00
linked libraries should be after the source file referencing them
http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
This commit is contained in:
parent
d600a3980c
commit
f66d681893
@ -49,7 +49,7 @@ clean :
|
||||
|
||||
test: build test.c
|
||||
cp $(DYLIBTARGET) lib$(DYLIBTARGET) # to make C linker happy
|
||||
$(CC) -o network-tests -L. -I. -l$(LIBNAME) test.c
|
||||
$(CC) -o network-tests -L. -I. test.c -l$(LIBNAME)
|
||||
LD_LIBRARY_PATH=. ./network-tests
|
||||
./lib-tests
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user