소스 검색

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