Explorar o código

testc: Semi-static build for testc binary

Serj Kalichev %!s(int64=4) %!d(string=hai) anos
pai
achega
eb1bf310b8
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  1. 8 2
      testc/Makefile.am

+ 8 - 2
testc/Makefile.am

@@ -5,5 +5,11 @@ bin_PROGRAMS += \
 testc_testc_SOURCES = \
 	testc/testc.c
 
-testc_testc_LDADD = \
-	libfaux.la
+# The testc binary must be maximally static because LD_LIBRARY_PATH may be used
+# to test not-installed libraries. This LD_LIBRARY_PATH can influence testc
+# itself. So build necessary parts of faux library statically.
+testc_testc_SOURCES += \
+	testc/base/base.c \
+	testc/ctype/ctype.c \
+	testc/str/str.c \
+	testc/list/list.c