[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] [PATCH] Fix EGLIBC build with OPTION_EGLIBC_NIS disabled
- To: patches@xxxxxxxxxx
- Subject: [patches] [PATCH] Fix EGLIBC build with OPTION_EGLIBC_NIS disabled
- From: Aurelien Jarno <aurelien@xxxxxxxxxxx>
- Date: Fri, 5 Sep 2008 20:43:16 +0200
If OPTION_EGLIBC_NIS is not enabled, nis_hash.c is used instead of
linking against libnsl.so. However nis_hash.c is no compiled with the
correct options and especially with -fpie or -fPIC on architectures
which need that.
The patch below fixes that.
2008-09-05 Aurelien Jarno <aurelien@xxxxxxxxxxx>
* nscd/Makefile (CFLAGS-nis_hash.c): set to $(nscd-cflags).
Index: Makefile
===================================================================
--- Makefile (revision 6892)
+++ Makefile (working copy)
@@ -131,6 +131,7 @@
CFLAGS-getsrvbynm_r.c += $(nscd-cflags)
CFLAGS-getsrvbypt_r.c += $(nscd-cflags)
CFLAGS-res_hconf.c += $(nscd-cflags)
+CFLAGS-nis_hash.c += $(nscd-cflags)
ifeq (yesyes,$(have-fpie)$(build-shared))
relro-LDFLAGS += -Wl,-z,now
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@xxxxxxxxxx | aurelien@xxxxxxxxxxx
`- people.debian.org/~aurel32 | www.aurel32.net