Browse Source

testc: Semi-static build for testc binary

Serj Kalichev 4 years ago
parent
commit
eb1bf310b8
1 changed files with 8 additions and 2 deletions
  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