diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-09-24 06:12:33 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-09-24 06:12:33 +0000 |
commit | df244a7b4dc2429e5db8f5bded0d9b9c9631285b (patch) | |
tree | 747ec8003375aba3b953a79c58b3c101f68b2c6f /nscd | |
parent | 9a276f8e1e25b558e893e34f9ae6d64130f87cf6 (diff) | |
download | glibc-df244a7b4dc2429e5db8f5bded0d9b9c9631285b.zip glibc-df244a7b4dc2429e5db8f5bded0d9b9c9631285b.tar.gz glibc-df244a7b4dc2429e5db8f5bded0d9b9c9631285b.tar.bz2 |
Update.
* nscd/Makefile: Add rules to build nscd as a PIE.
2003-09-23 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/sys/alpha/sysmacros.h: Removed.
* sysdeps/unix/sysv/linux/sys/sparc/sysmacros.h: Removed.
* sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
kernel dev_t.
* sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
* sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
* sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
Code by Alexander Viro <aviro@redhat.com>.
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/Makefile | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/nscd/Makefile b/nscd/Makefile index 7931099..19875fb 100644 --- a/nscd/Makefile +++ b/nscd/Makefile @@ -34,7 +34,7 @@ nscd-modules := nscd connections pwdcache getpwnam_r getpwuid_r grpcache \ ifeq ($(have-thread-library),yes) -others := nscd nscd_nischeck +others := nscd_nischeck install-sbin := nscd nscd_nischeck extra-objs := $(nscd-modules:=.o) nscd_nischeck.o @@ -57,6 +57,37 @@ CFLAGS-nscd_getpw_r.c = -fexceptions CFLAGS-nscd_getgr_r.c = -fexceptions CFLAGS-nscd_gethst_r.c = -fexceptions +ifeq (yesyes,$(have-fpie)$(build-shared)) +CFLAGS-nscd.c = -fpie +CFLAGS-connections.c = -fpie +CFLAGS-pwdcache.c = -fpie +CFLAGS-getpwnam_r.c = -fpie +CFLAGS-getpwuid_r.c = -fpie +CFLAGS-grpcache.c = -fpie +CFLAGS-getgrnam_r.c = -fpie +CFLAGS-getgrgid_r.c = -fpie +CFLAGS-hstcache.c = -fpie +CFLAGS-gethstbyad_r.c = -fpie +CFLAGS-gethstbynm2_r.c = -fpie +CFLAGS-dbg_log.c = -fpie +CFLAGS-nscd_conf.c = -fpie +CFLAGS-nscd_stat.c = -fpie +CFLAGS-cache.c = -fpie +CFLAGS-xmalloc.c = -fpie +CFLAGS-xstrdup.c = -fpie + +$(objpfx)nscd: $(addprefix $(objpfx),$(nscd-modules:=.o)) + $(LINK.o) -pie -Wl,-O1 \ + $(sysdep-LDFLAGS) $(config-LDFLAGS) \ + $(extra-B-$(@F:lib%.so=%).so) -B$(csu-objpfx) \ + $(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \ + $(LDFLAGS) $(LDFLAGS-$(@F)) \ + -L$(subst :, -L,$(rpath-link)) -Wl,-rpath-link=$(rpath-link) \ + -o $@ $^ $(common-objpfx)libc_nonshared.a +else +others += nscd +endif + # This makes sure -DNOT_IN_libc is passed for all these modules. cpp-srcs-left := $(nscd-modules:=.c) lib := nonlib |