aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/gdb6/Makefile7
-rw-r--r--devel/gdb66/Makefile7
2 files changed, 12 insertions, 2 deletions
diff --git a/devel/gdb6/Makefile b/devel/gdb6/Makefile
index b5275c1ae4f7..0263a58fbb77 100644
--- a/devel/gdb6/Makefile
+++ b/devel/gdb6/Makefile
@@ -26,6 +26,7 @@ USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-suffix=6
+CFLAGS+= -DRL_NO_COMPAT
.include <bsd.port.pre.mk>
@@ -45,9 +46,13 @@ post-patch:
do-patch: post-patch
@${ECHO} 'FreeBSD-specific patches disabled for now, until upgraded.'
+ @${REINPLACE_CMD} -e 's/^READLINE/#READLINE/' \
+ -e 's/^readline/#readline/' \
+ ${WRKSRC}/gdb/Makefile.in
+ echo 'READLINE = -lreadline' >> ${WRKSRC}/gdb/Makefile.in
pre-configure:
- cd ${WRKSRC} ; ${RM} -rf dejagnu expect sim tcl texinfo
+ cd ${WRKSRC} ; ${RM} -rf dejagnu expect readline sim tcl texinfo
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb \
diff --git a/devel/gdb66/Makefile b/devel/gdb66/Makefile
index b5275c1ae4f7..0263a58fbb77 100644
--- a/devel/gdb66/Makefile
+++ b/devel/gdb66/Makefile
@@ -26,6 +26,7 @@ USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-suffix=6
+CFLAGS+= -DRL_NO_COMPAT
.include <bsd.port.pre.mk>
@@ -45,9 +46,13 @@ post-patch:
do-patch: post-patch
@${ECHO} 'FreeBSD-specific patches disabled for now, until upgraded.'
+ @${REINPLACE_CMD} -e 's/^READLINE/#READLINE/' \
+ -e 's/^readline/#readline/' \
+ ${WRKSRC}/gdb/Makefile.in
+ echo 'READLINE = -lreadline' >> ${WRKSRC}/gdb/Makefile.in
pre-configure:
- cd ${WRKSRC} ; ${RM} -rf dejagnu expect sim tcl texinfo
+ cd ${WRKSRC} ; ${RM} -rf dejagnu expect readline sim tcl texinfo
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb \