955fe6f69d
The build system was making a nscd dynamically linked with libssp, which we don't want in general. We want a glibc not depending on the gcc that built it. svn path=/nixpkgs/branches/stdenv-updates/; revision=24313
17 lines
501 B
Diff
17 lines
501 B
Diff
http://sources.redhat.com/bugzilla/show_bug.cgi?id=12125
|
|
|
|
diff --git a/nscd/Makefile b/nscd/Makefile
|
|
index 93874e5..63f7144 100644
|
|
--- a/nscd/Makefile
|
|
+++ b/nscd/Makefile
|
|
@@ -90,6 +90,9 @@ CFLAGS-nscd_initgroups.c = -fexceptions
|
|
nscd-cflags = -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2
|
|
ifeq (yesyes,$(have-fpie)$(build-shared))
|
|
nscd-cflags += $(pie-ccflag)
|
|
+ifeq (yes,$(have-ssp))
|
|
+link-extra-libs += -Wl,-Bstatic -lssp -Wl,-Bdynamic
|
|
+endif
|
|
endif
|
|
ifeq (yes,$(have-ssp))
|
|
nscd-cflags += -fstack-protector
|