[git commit master] build: Do not define -DPIC longer through build system

Carmelo Amoroso carmelo.amoroso at st.com
Fri Apr 23 14:31:55 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=f0a5fcde1d6eac5b1994e70410b09eab6bd99057
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

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 at st.com>
---
 Rules.mak |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Rules.mak b/Rules.mak
index c03faf8..afecb77 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
-- 
1.6.3.3



More information about the uClibc-cvs mailing list