From 401a9ec9cad6fe21a6471f926152dbaff64d2212 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 19 Jul 2005 15:35:50 +0000 Subject: * configure.in: Check for -fstack-protector gcc option. * config.make.in (have-ssp): Add template. * nscd/Makefile (nscd-cflags): Add -fstack-protector if supported. * nscd/nscd.c (main): Don't ignore result of chdir call. --- nscd/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nscd/Makefile') diff --git a/nscd/Makefile b/nscd/Makefile index 4b6f2967a5..5a2d29a0a5 100644 --- a/nscd/Makefile +++ b/nscd/Makefile @@ -88,6 +88,9 @@ nscd-cflags = -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2 ifeq (yesyes,$(have-fpie)$(build-shared)) nscd-cflags += -fpie endif +ifeq (yes,$(have-ssp)) +nscd-cflags += -fstack-protector +endif CFLAGS-nscd.c += $(nscd-cflags) CFLAGS-connections.c += $(nscd-cflags) -- cgit v1.2.3