Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/bin fix build.



details:   https://anonhg.NetBSD.org/src/rev/09adb2adf608
branches:  trunk
changeset: 938875:09adb2adf608
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 17 20:26:22 2020 +0000

description:
fix build.

diffstat:

 external/gpl3/gdb/bin/gdb/Makefile    |  10 ++++++----
 external/gpl3/gdb/bin/gdbtui/Makefile |  29 ++++++++++++++++++++---------
 2 files changed, 26 insertions(+), 13 deletions(-)

diffs (99 lines):

diff -r a2f1d45504f5 -r 09adb2adf608 external/gpl3/gdb/bin/gdb/Makefile
--- a/external/gpl3/gdb/bin/gdb/Makefile        Thu Sep 17 20:13:20 2020 +0000
+++ b/external/gpl3/gdb/bin/gdb/Makefile        Thu Sep 17 20:26:22 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.17 2020/09/17 16:38:10 christos Exp $
+#      $NetBSD: Makefile,v 1.18 2020/09/17 20:26:22 christos Exp $
 
 NOCTF=
 .include <bsd.own.mk>
@@ -11,8 +11,7 @@
 
 SRCS=          gdb.c
 CPPFLAGS+=     -I${.CURDIR} \
-               -I${GDBARCHDIR} \
-               -I${GDBARCHDIR}/gnulib/import \
+               -I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib \
                -I${DIST}/gdb \
                -I${DIST}/gdbsupport \
                -I${DIST}/gdb/config \
@@ -22,13 +21,16 @@
                -I${DIST}/libdecnumber \
                -I${DIST} \
                -I${.CURDIR}/../../lib/libbfd/arch/${GDB_MACHINE_ARCH} \
+               -I${.CURDIR}/../../lib/libgdbsupport/arch/${GDB_MACHINE_ARCH} \
+               -I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH} \
+               -I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib/import \
                -I${DIST}/bfd \
                -I${DIST}/include \
                ${GCPPFLAGS:M-D*}
 
 TEXINFO=       gdb.texinfo stabs.texinfo
 INFOFLAGS=     -I${DIST}/gdb/doc -I${DIST}/gdb/mi \
-               -I${DIST}/readline/doc -I${.CURDIR}/.. -DGDBN=${GDBN}
+               -I${DIST}/readline/readline/doc -I${.CURDIR}/.. -DGDBN=${GDBN}
 
 GDBvn.texi: ${DIST}/gdb/version.in
        echo "@set GDBVN $$(${TOOL_CAT} ${.ALLSRC})" > ${.TARGET}
diff -r a2f1d45504f5 -r 09adb2adf608 external/gpl3/gdb/bin/gdbtui/Makefile
--- a/external/gpl3/gdb/bin/gdbtui/Makefile     Thu Sep 17 20:13:20 2020 +0000
+++ b/external/gpl3/gdb/bin/gdbtui/Makefile     Thu Sep 17 20:26:22 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.12 2017/12/13 21:52:55 joerg Exp $
+#      $NetBSD: Makefile,v 1.13 2020/09/17 20:26:22 christos Exp $
 NOCTF=
 .include "../Makefile.inc"
 
@@ -9,14 +9,19 @@
 
 SRCS=          tui-main.c
 CPPFLAGS+=     -I${.CURDIR} \
-               -I${GDBARCHDIR} \
+               -I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib \
                -I${DIST}/gdb \
-               -I${DIST}/gdb/common \
+               -I${DIST}/gdbsupport \
                -I${DIST}/gdb/config \
-               -I${DIST}/gdb/gnulib/import \
+               -I${DIST}/gnulib/import \
                -I${DIST}/include/opcode \
+               -I${DIST}/readline \
+               -I${DIST}/libdecnumber \
                -I${DIST} \
                -I${.CURDIR}/../../lib/libbfd/arch/${GDB_MACHINE_ARCH} \
+               -I${.CURDIR}/../../lib/libgdbsupport/arch/${GDB_MACHINE_ARCH} \
+               -I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH} \
+               -I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib/import \
                -I${DIST}/bfd \
                -I${DIST}/include \
                ${GCPPFLAGS:M-D*}
@@ -31,11 +36,14 @@
 CC:=                   ${CXX}
 CFLAGS:=               ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
 
-LIBOPCODESDIR!=   cd ${.CURDIR}/../../lib/libopcodes   && ${PRINTOBJDIR}
-LIBBFDDIR!=       cd ${.CURDIR}/../../lib/libbfd       && ${PRINTOBJDIR}
-LIBIBERTYDIR!=    cd ${.CURDIR}/../../lib/libiberty    && ${PRINTOBJDIR}
-LIBGDBDIR!=      cd ${.CURDIR}/../../lib/libgdb       && ${PRINTOBJDIR}
-LIBDECNUMBERDIR!= cd ${.CURDIR}/../../lib/libdecnumber && ${PRINTOBJDIR}
+LIBCTFDIR!=         cd ${.CURDIR}/../../lib/libctf        && ${PRINTOBJDIR}
+LIBGNULIBDIR!=      cd ${.CURDIR}/../../lib/libgnulib     && ${PRINTOBJDIR}
+LIBGDBSUPPORTDIR!=   cd ${.CURDIR}/../../lib/libgdbsupport && ${PRINTOBJDIR}
+LIBOPCODESDIR!=             cd ${.CURDIR}/../../lib/libopcodes    && ${PRINTOBJDIR}
+LIBBFDDIR!=         cd ${.CURDIR}/../../lib/libbfd        && ${PRINTOBJDIR}
+LIBIBERTYDIR!=      cd ${.CURDIR}/../../lib/libiberty     && ${PRINTOBJDIR}
+LIBGDBDIR!=         cd ${.CURDIR}/../../lib/libgdb        && ${PRINTOBJDIR}
+LIBDECNUMBERDIR!=    cd ${.CURDIR}/../../lib/libdecnumber  && ${PRINTOBJDIR}
 
 .if ${USE_LIBEDIT} == yes
 LIBEDIT=-ledit
@@ -63,6 +71,9 @@
 LDADD+= -L${LIBOPCODESDIR} -lopcodes \
        -L${LIBBFDDIR} -lbfd \
        -L${LIBDECNUMBERDIR} -ldecnumber \
+       -L${LIBGDBSUPPORTDIR} -lgdbsupport \
+       -L${LIBCTFDIR} -lctf \
+       -L${LIBGNULIBDIR} -lgnulib \
        ${LIBRL} \
        -lterminfo \
        -L${LIBIBERTYDIR} -liberty



Home | Main Index | Thread Index | Old Index