浏览代码

testc: Semi-static build for testc binary

Serj Kalichev 4 年之前
父节点
当前提交
eb1bf310b8
共有 1 个文件被更改,包括 8 次插入2 次删除
  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