diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-07-19 15:35:50 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-07-19 15:35:50 +0000 |
commit | 401a9ec9cad6fe21a6471f926152dbaff64d2212 (patch) | |
tree | da140fef4d5b44878ceea97383512f64c25818a3 /nscd | |
parent | be686f1876c5ebbf95801b270522066bfebb0905 (diff) | |
download | glibc-401a9ec9cad6fe21a6471f926152dbaff64d2212.zip glibc-401a9ec9cad6fe21a6471f926152dbaff64d2212.tar.gz glibc-401a9ec9cad6fe21a6471f926152dbaff64d2212.tar.bz2 |
* 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/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nscd/Makefile b/nscd/Makefile index 4b6f296..5a2d29a 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) |