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