glibc wants -lpthread at the end
authorSzabolcs Nagy <nsz@port70.net>
Fri, 10 Apr 2015 21:17:06 +0000 (21:17 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Fri, 10 Apr 2015 21:17:06 +0000 (21:17 +0000)
glibc -lpthread also needs -Wl,--whole-archive but that's a glibc bug

config.mak.def

index 49b49c1..633fef8 100644 (file)
@@ -7,5 +7,5 @@ LDLIBS += -lpthread -lm -lrt
 
 # glibc specific settings
 CFLAGS += -D_FILE_OFFSET_BITS=64
-LDLIBS += -lcrypt -ldl -lresolv -lutil
+LDLIBS += -lcrypt -ldl -lresolv -lutil -lpthread