[uClibc-cvs] CVS uClibc/ldso/ldso
CVS User andersen
andersen at codepoet.org
Sat Dec 11 12:23:34 UTC 2004
Update of /var/cvs/uClibc/ldso/ldso
In directory nail:/tmp/cvs-serv2771/ldso/ldso
Modified Files:
Makefile
Log Message:
Partial commit of a patch from Alexandre Oliva:
Here's an updated version of the patch I posted about a month ago. It
leaves -nostdinc alone, and uses -print-file-name=include instead of
-print-search-dirs to figure out where GCC's internal headers are.
Please let me know whether there are any portions of this patch you'd
like me to break into smaller pieces, to rework, or to give up trying
to get into uClibc :-) Thanks,
--- /var/cvs/uClibc/ldso/ldso/Makefile 2004/11/02 08:14:45 1.64
+++ /var/cvs/uClibc/ldso/ldso/Makefile 2004/12/11 12:23:33 1.65
@@ -39,7 +39,13 @@
# BEWARE!!! At least mips* will die if -O0 is used!!!
XXFLAGS :=$(XXFLAGS:-O0=-O1)
-XXFLAGS+=$(shell $(CC) -print-search-dirs | sed -ne "s/install: *\(.*\)/-I\1include/gp")
+ifeq ($(PIEFLAG),)
+PIEFLAG=-fPIC
+endif
+
+XXFLAGS+=$(PIEFLAG)
+
+XXFLAGS+=-isystem $(shell $(CC) -print-file-name=include)
LDFLAGS=$(CPU_LDFLAGS-y) -z now -Bsymbolic -shared --warn-common --export-dynamic --sort-common \
-z combreloc --discard-locals --discard-all --no-undefined
More information about the uClibc-cvs
mailing list