svn commit: trunk/uClibc
aldot at uclibc.org
aldot at uclibc.org
Wed Jan 14 15:59:37 UTC 2009
Author: aldot
Date: 2009-01-14 15:59:36 +0000 (Wed, 14 Jan 2009)
New Revision: 24837
Log:
- make sure to pass the correct PIE flags to gcc (Peter S. Mazinger)
Modified:
trunk/uClibc/Rules.mak
Changeset:
Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak 2009-01-14 15:54:12 UTC (rev 24836)
+++ trunk/uClibc/Rules.mak 2009-01-14 15:59:36 UTC (rev 24837)
@@ -427,9 +427,10 @@
endif
# We need to keep track of both the CC PIE flag (above) as
# well as the LD PIE flag (below) because we can't rely on
-# gcc passing -pie if we used -fPIE
+# gcc passing -pie if we used -fPIE. We need to directly use -pie
+# instead of -Wl,-pie as gcc picks up the wrong startfile/endfile
ifndef LDPIEFLAG
-export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-Wl,-pie")
+export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-pie")
endif
# Check for AS_NEEDED support in linker script (binutils>=2.16.1 has it)
More information about the uClibc-cvs
mailing list