Use pie-ccflag variable.
authordrepper <drepper>
Sat, 26 Jul 2008 22:21:57 +0000 (22:21 +0000)
committerdrepper <drepper>
Sat, 26 Jul 2008 22:21:57 +0000 (22:21 +0000)
elf/Makefile
nscd/Makefile

index e509153..abb9572 100644 (file)
@@ -800,7 +800,7 @@ $(objpfx)tst-array5-static.out: $(objpfx)tst-array5-static
        cmp $@ tst-array5-static.exp > /dev/null
 
 ifeq (yesyes,$(have-fpie)$(build-shared))
-CFLAGS-tst-pie1.c += -fpie
+CFLAGS-tst-pie1.c += $(pie-ccflag)
 
 $(objpfx)tst-pie1.out: $(objpfx)tst-pie1
        $(elf-objpfx)$(rtld-installed-name) \
index 51badea..364ddfe 100644 (file)
@@ -90,7 +90,7 @@ CFLAGS-nscd_initgroups.c = -fexceptions
 
 nscd-cflags = -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2
 ifeq (yesyes,$(have-fpie)$(build-shared))
-nscd-cflags += -fpie
+nscd-cflags += $(pie-ccflag)
 endif
 ifeq (yes,$(have-ssp))
 nscd-cflags += -fstack-protector