Makefile comment about the LDLIBS+= workaround
authorSzabolcs Nagy <nsz@port70.net>
Fri, 5 Jul 2013 20:32:02 +0000 (20:32 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Fri, 5 Jul 2013 20:32:02 +0000 (20:32 +0000)
src/functional/Makefile

index 6b8d61f..db10e7e 100644 (file)
@@ -39,6 +39,7 @@ pthread pthread-static: LDLIBS+=-lpthread
 sem sem-static: LDLIBS+=-lpthread -lrt
 strtod_simple strtod_simple-static: LDLIBS+=-lm
 tgmath tgmath-static: LDLIBS+=-lm
+# adding ./lib.so through LDLIBS instead of $^ in the implicit rule because make removes the leading ./ from dependencies
 tls_align: LDLIBS+=./tls_align_dso.so
 tls_align: tls_align_dso.so
 # make bug: tls_align target specific flags are also set for tls_align_dso.so when both target is built