nixpkgs/pkgs/development/libraries/glibc-2.12/nscd-ssp-linking.patch
Lluís Batlle i Rossell 955fe6f69d Fixing the nscd patch again. The other attempts did not give a working nscd.
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
2010-10-15 22:58:12 +00:00

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