This commit is contained in:
TMA 2026-03-14 23:58:05 +01:00
parent 856c8472d6
commit 6cf6b65c08

View file

@ -45,8 +45,13 @@ BRMELECT-OBJS=brmelect.o webgate-core.o webgate-utils.o
.PHONY: imports
imports: $(BRMELECT-DEPS)
#BRMELECT-LIB-RAW=$(shell pkg-config --static --libs-only-L libpq)
#BRMELECT-LIB-RAW = $(shell pkg-config --static --libs-only-l libpq)
BRMELECT-LIB-RAW = -L.. -lpq -lpgcommon -lpgport -lssl -ldl -lcrypto
BRMELECT-LIB=$(foreach arg,$(BRMELECT-LIB-RAW),-L $(arg))
$(BRMELECT-BIN): $(BRMELECT-OBJS)
$(CSC) -L --no-lto -L -Wl,-static -L -Wl,-lsqlite3 -L -Wl,-Bdynamic -strip -static -o $@ $(BRMELECT-OBJS)
$(CSC) -L --no-lto -L -Wl,-static -L -Wl,-L.. $(BRMELECT-LIB) -L -Wl,-Bdynamic -strip -static -o $@ $(BRMELECT-OBJS)
chmod u+s $@
.PHONY: clean