[uClibc-cvs] CVS uClibc
CVS User jocke
jocke at codepoet.org
Thu Oct 14 10:10:34 UTC 2004
Update of /var/cvs/uClibc
In directory nail:/tmp/cvs-serv7459
Modified Files:
Rules.mak
Log Message:
hmm, somehow cvs lost this file in the previous commit.
--- /var/cvs/uClibc/Rules.mak 2004/10/14 09:53:15 1.171
+++ /var/cvs/uClibc/Rules.mak 2004/10/14 10:10:34 1.172
@@ -89,6 +89,10 @@
OPTIMIZATION:=
PICFLAG:=-fPIC
+PIEFLAG:=$(call check_gcc,-fPIE,)
+ifeq ($(strip $(PIEFLAG)),-fPIE)
+LDPIEFLAG:=-Wl,-pie
+endif
# Some nice CPU specific optimizations
ifeq ($(strip $(TARGET_ARCH)),i386)
@@ -172,6 +176,7 @@
CPU_LDFLAGS-$(CONFIG_CRIS)+=-mcrislinux
CPU_CFLAGS-$(CONFIG_CRIS)+=-mlinux
PICFLAG:=-fpic
+ PIEFLAG:=$(call check_gcc,-fpie,)
endif
ifeq ($(strip $(TARGET_ARCH)),powerpc)
@@ -179,13 +184,14 @@
# enough. Therefore use -fpic which will reduce code size and generates
# faster code.
PICFLAG:=-fpic
+ PIEFLAG=$(call check_gcc,-fpie,)
endif
ifeq ($(strip $(TARGET_ARCH)),frv)
CPU_LDFLAGS-$(CONFIG_FRV)+=-melf32frvfd
CPU_CFLAGS-$(CONFIG_FRV)+=-mfdpic
PICFLAG=-fPIC -DPIC
- PIEFLAG=-fpie
+ PIEFLAG=$(call check_gcc,-fpie,)
# Using -pie causes the program to have an interpreter, which is
# forbidden, so we must make do with -shared. Unfortunately,
# -shared by itself would get us global function descriptors
@@ -220,6 +226,11 @@
endif
endif
+ifneq ($(strip $(UCLIBC_PIE_SUPPORT)),y)
+PIEFLAG=
+LDPIEFLAG=
+endif
+
ifeq ($(SSP_CFLAGS),)
SSP_CFLAGS=$(call check_gcc,-fno-stack-protector-all,)
SSP_CFLAGS+=$(call check_gcc,-fstack-protector,)
More information about the uClibc-cvs
mailing list