summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $@