From: Simon Ruderich Date: Sat, 8 Jun 2019 11:06:04 +0000 (+0200) Subject: nss: Makefile: inline library flags X-Git-Tag: 0.1~92 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b2b08613191a623b6b1ec522ec94b6bf7ca46569;p=nsscash%2Fnsscash.git nss: Makefile: inline library flags We want to build programs in the future which will conflict with -shared -fPIC. --- diff --git a/nss/Makefile b/nss/Makefile index 4afd529..195cdc1 100644 --- a/nss/Makefile +++ b/nss/Makefile @@ -1,7 +1,6 @@ # Compiler flags LDLIBS = -pthread -CFLAGS = -fPIC -Wall -Wextra -Wconversion -LDFLAGS = -shared +CFLAGS = -Wall -Wextra -Wconversion # DEB_BUILD_MAINT_OPTIONS='hardening=+all qa=+bug' dpkg-buildflags --export=make CFLAGS += -g -O2 -Werror=array-bounds -Werror=clobbered -Werror=volatile-register-var -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security CPPFLAGS += -Wdate-time -D_FORTIFY_SOURCE=2 @@ -17,7 +16,8 @@ clean: rm -f libnss_cash.so.2 libnss_cash.so.2: $(wildcard *.c) $(wildcard *.h) - $(CC) -o $@ -Wl,-soname,$@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \ + $(CC) -o $@ -shared -fPIC -Wl,-soname,$@ \ + $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \ file.c pw.c search.c \ $(LDLIBS)