mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-18 17:57:39 +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
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user