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, --- ldso/libdl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldso/libdl') diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile index 2da54e0a7..7f65128c4 100644 --- a/ldso/libdl/Makefile +++ b/ldso/libdl/Makefile @@ -31,7 +31,7 @@ XXFLAGS+= $(XARCH_CFLAGS) $(CPU_CFLAGS) \ -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \ -fno-builtin -nostdinc -D_LIBC -I$(TOPDIR)ldso/include -I$(TOPDIR)ldso/ldso -I. -I$(TOPDIR)include -XXFLAGS+=$(shell $(CC) -print-search-dirs | sed -ne "s/install: *\(.*\)/-I\1include/gp") +XXFLAGS+=-isystem $(shell $(CC) -print-file-name=include) XXFLAGS_NOPIC:=$(XXFLAGS) ifeq ($(DOPIC),y) XXFLAGS += $(PICFLAG) -D__LIBDL_SHARED__ -- cgit v1.2.3