From 13566022d5976c157f4ade064abee50968ecc98d Mon Sep 17 00:00:00 2001 From: skreuzer Date: Mon, 20 Dec 2010 18:29:43 +0000 Subject: Put ${LOCALBASE}/include at the end of the include path to prevent headers in ${LOCALBASE} from overriding internal gdb headers if devel/readline is installed Submitted by: jhb@ --- devel/gdb/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile index 12f52c7b7055..754958b3a24c 100644 --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -8,6 +8,7 @@ PORTNAME= gdb PORTVERSION= 7.1 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU:S,$,:gdb,} MASTER_SITE_SUBDIR=gdb/:gdb @@ -32,9 +33,7 @@ CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \ --enable-target=all \ --enable-tui CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes -CFLAGS+= -I${LOCALBASE}/include CFLAGS+= -DRL_NO_COMPAT -LDFLAGS+= -L${LOCALBASE}/lib EXCLUDE= dejagnu expect readline sim texinfo intl EXTRACT_AFTER_ARGS=| ${TAR} -xf - ${EXCLUDE:S/^/--exclude /} VER= ${PORTVERSION:S/.//} @@ -48,6 +47,8 @@ ONLY_FOR_ARCHS= i386 amd64 # untested elsewhere, might work # XXX: add OSVERSION check after readline is removed from base .if exists(${LOCALBASE}/lib/libreadline.so) LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline +CFLAGS+= -isystem ${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib .endif .if ${ARCH} == "amd64" -- cgit