From b2b08613191a623b6b1ec522ec94b6bf7ca46569 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 8 Jun 2019 13:06:04 +0200 Subject: [PATCH] nss: Makefile: inline library flags We want to build programs in the future which will conflict with -shared -fPIC. --- nss/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.43.2