Link libraries after object files
This commit is contained in:
parent
edcce1e647
commit
094cd2c2dd
|
@ -1,8 +1,8 @@
|
||||||
CFLAGS += -std=gnu99 -Wall -Wextra -pedantic -O3 -fPIC
|
CFLAGS += -std=gnu99 -Wall -Wextra -pedantic -O3 -fPIC
|
||||||
LDFLAGS += -shared -lpthread -lcrypto -Wl,-version-script=main.map -v
|
LDFLAGS += -shared -Wl,-version-script=main.map
|
||||||
|
|
||||||
libfastsolver.so: main.map common.o pthread.o
|
libfastsolver.so: main.map common.o pthread.o
|
||||||
$(CC) $(LDFLAGS) -o $@ common.o pthread.o
|
$(CC) $(LDFLAGS) -o $@ common.o pthread.o -lpthread -lcrypto
|
||||||
|
|
||||||
common.o: common.h common.c
|
common.o: common.h common.c
|
||||||
pthread.o: common.h pthread.c
|
pthread.o: common.h pthread.c
|
||||||
|
|
Reference in New Issue
Block a user