summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorSteven Kreuzer <skreuzer@FreeBSD.org>2010-12-20 18:29:43 +0000
committerSteven Kreuzer <skreuzer@FreeBSD.org>2010-12-20 18:29:43 +0000
commitbef102ab1c06ac18a5b168ee7b772f912252d321 (patch)
treeb4584bc34416c4a50ee137ca0bfa37c14d77f468 /devel
parent- Update to 2.13.41 (diff)
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@
Notes
Notes: svn path=/head/; revision=266658
Diffstat (limited to 'devel')
-rw-r--r--devel/gdb/Makefile5
1 files 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"