mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-14 08:07:14 +03:00
Adjust linking so that wrapper libraries are static.
This commit is contained in:
parent
cb90cc97ae
commit
021eb836e4
6
Makefile
6
Makefile
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user