Browse Source

get rid of LDPIEFLAG since PIEFLAG is already used

Mike Frysinger 19 years ago
parent
commit
f13d9be54c
2 changed files with 2 additions and 5 deletions
  1. 0 3
      Rules.mak
  2. 2 2
      utils/Makefile

+ 0 - 3
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)

+ 2 - 2
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 $@