From a56073a28beba540347846a193d25fd61584c2af Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 11 Dec 2004 12:23:37 +0000 Subject: 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, --- Rules.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index 7c55ed6bc..2b804b404 100644 --- a/Rules.mak +++ b/Rules.mak @@ -191,7 +191,7 @@ ifeq ($(strip $(TARGET_ARCH)),frv) CPU_LDFLAGS-$(CONFIG_FRV)+=-melf32frvfd CPU_CFLAGS-$(CONFIG_FRV)+=-mfdpic PICFLAG=-fPIC -DPIC - PIEFLAG=$(call check_gcc,-fpie,) + PIEFLAG=-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 @@ -251,7 +251,7 @@ endif # Sigh, some stupid versions of gcc can't seem to cope with '-iwithprefix include' #CFLAGS+=-iwithprefix include -CFLAGS+=$(shell $(CC) -print-search-dirs | sed -ne "s/install: *\(.*\)/-I\1include/gp") +CFLAGS+=-isystem $(shell $(CC) -print-file-name=include) ifneq ($(DOASSERTS),y) CFLAGS += -DNDEBUG -- cgit v1.2.3