aboutsummaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-07-19 15:35:50 +0000
committerUlrich Drepper <drepper@redhat.com>2005-07-19 15:35:50 +0000
commit401a9ec9cad6fe21a6471f926152dbaff64d2212 (patch)
treeda140fef4d5b44878ceea97383512f64c25818a3 /nscd
parentbe686f1876c5ebbf95801b270522066bfebb0905 (diff)
downloadglibc-401a9ec9cad6fe21a6471f926152dbaff64d2212.tar
glibc-401a9ec9cad6fe21a6471f926152dbaff64d2212.tar.gz
glibc-401a9ec9cad6fe21a6471f926152dbaff64d2212.tar.bz2
glibc-401a9ec9cad6fe21a6471f926152dbaff64d2212.zip
* 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.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/Makefile3
1 files changed, 3 insertions, 0 deletions
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)