Adjust linking so that wrapper libraries are static.

This commit is contained in:
Robert de Bath 2017-11-23 20:40:47 +00:00
parent cb90cc97ae
commit 021eb836e4

View File

@ -24,7 +24,7 @@ endif
CC ?= gcc
CFLAGS ?=-Wall -g $(CFLAGS_COV)
LIBS=
LIBS=-Wl,--as-needed
OBJS=common.o sslh-main.o probe.o tls.o
ifneq ($(strip $(USELIBWRAP)),)
@ -38,7 +38,7 @@ endif
ifneq ($(strip $(USELIBPCRE)),)
CPPFLAGS+=-DLIBPCRE
LIBS:=$(LIBS) -lpcreposix
LIBS:=$(LIBS) -Wl,-Bstatic -lpcreposix -Wl,-Bdynamic -lpcre
endif
ifneq ($(strip $(USELIBCONFIG)),)
@ -52,7 +52,7 @@ ifneq ($(strip $(USELIBCAP)),)
endif
ifneq ($(strip $(USESYSTEMD)),)
LIBS:=$(LIBS) -lsystemd
LIBS:=$(LIBS) -Wl,-Bstatic -lsystemd -Wl,-Bdynamic
CPPFLAGS+=-DSYSTEMD
endif