summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2009-12-16 09:13:52 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2009-12-16 09:13:52 +0100
commitf0a5fcde1d6eac5b1994e70410b09eab6bd99057 (patch)
tree22ce52b4285ebff42d2d68a7abb4b29529d91558
parent5418c5ea2ab6a8e82421ebbf8060e52b5b1710a7 (diff)
build: Do not define -DPIC longer through build system
Now all code relies upon __PIC__ flag defined by compiler, so it does not need to explicitly define the PIC macro through build system Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
-rw-r--r--Rules.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index c03faf833..afecb7751 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -228,7 +228,7 @@ CPU_CFLAGS-$(UCLIBC_FORMAT_FLAT_SEP_DATA) += -msep-data
CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN) += -Wl,-EL
CPU_LDFLAGS-$(ARCH_BIG_ENDIAN) += -Wl,-EB
-PICFLAG-y := -fPIC -DPIC
+PICFLAG-y := -fPIC
PICFLAG-$(UCLIBC_FORMAT_FDPIC_ELF) := -mfdpic
PICFLAG := $(PICFLAG-y)
PIEFLAG_NAME:=-fPIE