diff options
author | skreuzer <skreuzer@FreeBSD.org> | 2010-12-21 02:29:43 +0800 |
---|---|---|
committer | skreuzer <skreuzer@FreeBSD.org> | 2010-12-21 02:29:43 +0800 |
commit | 13566022d5976c157f4ade064abee50968ecc98d (patch) | |
tree | 60a1c208aa46c24308f7c490bae6077ed0a0f5ed /devel | |
parent | a167c2b31269d94c2eb042c485583d6c48f20855 (diff) | |
download | freebsd-ports-gnome-13566022d5976c157f4ade064abee50968ecc98d.tar.gz freebsd-ports-gnome-13566022d5976c157f4ade064abee50968ecc98d.tar.zst freebsd-ports-gnome-13566022d5976c157f4ade064abee50968ecc98d.zip |
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@
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gdb/Makefile | 5 |
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" |