From ceab353d467a2705d334a879332a4159095b7ace Mon Sep 17 00:00:00 2001 From: cshapiro <cshapiro> Date: Tue, 18 Mar 2008 04:14:48 +0000 Subject: [PATCH] Unless we are using GCC versions 2 or 3 use -iquote to specify local include search paths. --- lisp/Config.linux_gencgc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/Config.linux_gencgc b/lisp/Config.linux_gencgc index 6c5cadf41..0b6f2a171 100644 --- a/lisp/Config.linux_gencgc +++ b/lisp/Config.linux_gencgc @@ -20,7 +20,11 @@ endif RUNTIME = $(GENCGC) $(LINKAGE) # __NO_CTYPE so builds on glibc 2.3 will run on (some) older glibc's. +ifneq (,$(filter 2% 3%, $(shell $(CC) -dumpversion))) CPPFLAGS = -D__NO_CTYPE -D_GNU_SOURCE -I. -I$(PATH1) -I- $(RUNTIME) +else +CPPFLAGS = -D__NO_CTYPE -D_GNU_SOURCE -iquote. -iquote $(PATH1) $(RUNTIME) +endif CFLAGS = -rdynamic -Wstrict-prototypes -Wall -O2 -g $(RUNTIME) ASFLAGS = -g $(GENCGC) $(LINKAGE_TABLE) -- GitLab