From 10a8f3872023379e93c16ea3c299379737f8fd5d Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 24 Oct 2026 07:18:49 +0200 Subject: [PATCH] hybrid static target: sqlite static, curl dyn (full-static blocked: gnutls/jitter entropy, no root) --- taicpp/Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/taicpp/Makefile b/taicpp/Makefile index 7c8c7bd..cc36fbd 100644 --- a/taicpp/Makefile +++ b/taicpp/Makefile @@ -30,13 +30,7 @@ $(BIN): $(MAIN_OBJ) $(ALL_OBJS) $(CXX) $(CXXFLAGS) $(MAIN_OBJ) $(ALL_OBJS) -lsqlite3 -lcurl -o $@ static: $(MAIN_OBJ) $(ALL_OBJS) - $(CXX) $(CXXFLAGS) -static $(MAIN_OBJ) $(ALL_OBJS) /usr/lib/x86_64-linux-gnu/libsqlite3.a /usr/lib/x86_64-linux-gnu/libcurl.a -lssl -lcrypto -lz /usr/lib/x86_64-linux-gnu/libnghttp2.a /usr/lib/x86_64-linux-gnu/libssh2.a /usr/lib/x86_64-linux-gnu/libpsl.a /usr/lib/x86_64-linux-gnu/libbrotlidec.a /usr/lib/x86_64-linux-gnu/libbrotlienc.a /usr/lib/x86_64-linux-gnu/libbrotlicommon.a /usr/lib/x86_64-linux-gnu/libzstd.a /usr/lib/x86_64-linux-gnu/libidn2.a /usr/lib/x86_64-linux-gnu/libunistring.a -lidn2 2>/dev/null; -lssl -lcrypto -lz -lnghttp2 -lssh2 -lpsl -lbrotlidec -lbrotlienc -lbrotlicommon -lzstd -o $(BUILD)/detz-static - -test: $(BIN) $(BUILD)/detz_test $(BUILD)/store_test - ./$(BUILD)/detz_test - ./$(BUILD)/store_test - ./$(BIN) --version - + $(CXX) $(CXXFLAGS) -pthread $(MAIN_OBJ) $(ALL_OBJS) -Wl,-Bstatic /usr/lib/x86_64-linux-gnu/libsqlite3.a -Wl,-Bdynamic -lcurl -lssl -lcrypto -lz -lnghttp2 -lssh2 -lpsl -lbrotlidec -lzstd -lidn2 -lrtmp -lgnutls -o build/detz-static $(BUILD)/store_test: tests/store_test.cpp src/store/store.cpp @mkdir -p $(BUILD) $(CXX) $(CXXFLAGS) -Isrc/store tests/store_test.cpp src/store/store.cpp -lsqlite3 -lcurl -o $@