summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-29 03:36:00 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-29 03:36:00 +0000
commitf13d9be54c8845d70209cf5731079661f3d2b2f3 (patch)
tree46af725c525e2299a29cd9d348579582d4a74e79
parente5760ee3f30b36e1ce866c68db759a40a2ecd8b0 (diff)
get rid of LDPIEFLAG since PIEFLAG is already used
-rw-r--r--Rules.mak3
-rw-r--r--utils/Makefile4
2 files changed, 2 insertions, 5 deletions
diff --git a/Rules.mak b/Rules.mak
index 91dbec36c..edba76251 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -117,9 +117,6 @@ OPTIMIZATION:=
PICFLAG:=-fPIC
PIEFLAG:=$(call check_gcc,-fPIE,)
-ifeq ($(strip $(PIEFLAG)),-fPIE)
-LDPIEFLAG:=$(shell $(LD) --help | grep -q pie && echo "-Wl,-pie")
-endif
# Some nice CPU specific optimizations
ifeq ($(strip $(TARGET_ARCH)),i386)
diff --git a/utils/Makefile b/utils/Makefile
index 03a5cfc2d..dec011780 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -54,14 +54,14 @@ ldconfig: ldconfig.c
$(STRIPTOOL) -x -R .note -R .comment $@
ldd: ldd.c
- $(CC) $(CFLAGS) $(PIEFLAG) $(LDPIEFLAG) -Wl,-s \
+ $(CC) $(CFLAGS) $(PIEFLAG) -Wl,-s \
-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
-DUCLIBC_LDSO=$(UCLIBC_LDSO) -I. -I../ldso/include \
$^ -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
iconv: ../libc/misc/wchar/wchar.c
- $(CC) $(CFLAGS) $(PIEFLAG) $(LDPIEFLAG) -Wl,-s \
+ $(CC) $(CFLAGS) $(PIEFLAG) -Wl,-s \
-DL_iconv_main \
$^ -o $@
$(STRIPTOOL) -x -R .note -R .comment $@