head 1.3; access; symbols netbsd-11-0-RC6:1.3 netbsd-11-0-RC5:1.3 netbsd-11-0-RC4:1.3 netbsd-11-0-RC3:1.3 netbsd-11-0-RC2:1.3 netbsd-11-0-RC1:1.3 perseant-exfatfs-base-20250801:1.3 netbsd-11:1.3.0.2 netbsd-11-base:1.3 netbsd-10-1-RELEASE:1.2 perseant-exfatfs-base-20240630:1.2 perseant-exfatfs:1.2.0.4 perseant-exfatfs-base:1.2 netbsd-10-0-RELEASE:1.2 netbsd-10-0-RC6:1.2 netbsd-10-0-RC5:1.2 netbsd-10-0-RC4:1.2 netbsd-10-0-RC3:1.2 netbsd-10-0-RC2:1.2 netbsd-10-0-RC1:1.2 netbsd-10:1.2.0.2 netbsd-10-base:1.2 cjep_sun2x-base1:1.1 cjep_sun2x:1.1.0.4 cjep_sun2x-base:1.1 cjep_staticlib_x-base1:1.1 cjep_staticlib_x:1.1.0.2 cjep_staticlib_x-base:1.1; locks; strict; comment @# @; 1.3 date 2024.08.14.23.54.50; author christos; state Exp; branches; next 1.2; commitid nWYbI3Bn3YmfHQlF; 1.2 date 2021.09.18.01.47.09; author christos; state Exp; branches 1.2.4.1; next 1.1; commitid NKw39S32w03lsn9D; 1.1 date 2020.09.17.16.36.39; author christos; state Exp; branches; next ; commitid vwJfeVcWA2Uj9qoC; 1.2.4.1 date 2025.08.02.05.33.24; author perseant; state Exp; branches; next ; commitid 23j6GFaDws3O875G; desc @@ 1.3 log @- regen x86 - api updates - switch to c++-17 - add new dependencies - disable installing info files @ text @# $NetBSD: Makefile,v 1.2 2021/09/18 01:47:09 christos Exp $ NOCTF= HOSTPROG_CXX= 1 .include .include "../Makefile.inc" LIBISPRIVATE= yes LIB= gdbsupport GDBARCHDIR= ${.CURDIR}/arch/${GDB_MACHINE_ARCH} .include "${GDBARCHDIR}/defs.mk" SRCS= ${G_OBJECTS:.o=.cc} GCPPFLAGS= ${G_INTERNAL_CFLAGS} CPPFLAGS+= -I${.CURDIR} \ -I${GDBARCHDIR} \ -I${DIST} \ -I${DIST}/gdb \ -I${DIST}/gdbsupport \ -I${DIST}/gdb/config \ -I${DIST}/gnulib/import \ -I${DIST}/include/opcode \ -I${DIST}/readline \ -I${DIST}/libdecnumber \ -I${.CURDIR}/../libgnulib/arch/${GDB_MACHINE_ARCH} \ -I${.CURDIR}/../libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib/import \ -I${.CURDIR}/../libbfd/arch/${GDB_MACHINE_ARCH} \ -I${.CURDIR}/../libdecnumber/arch/${GDB_MACHINE_ARCH} \ -I${DIST}/bfd \ -I${DIST}/include \ -include ${DIST}/gdbsupport/common-defs.h \ -Dsighandler_t=sig_t \ -DTARGET_SYSTEM_ROOT=\"\" \ -DTARGET_SYSTEM_ROOT_RELOCATABLE=0 \ -DBINDIR=\"${BINDIR}\" \ ${GCPPFLAGS:M-D*} CWARNFLAGS.clang+= -Wno-switch .include "../../Makefile.inc" .include # Force c++ CWARNFLAGS.clang+= -Wno-deprecated HOST_CC:= ${HOST_CXX} HOST_CFLAGS+= ${HOST_CXXFLAGS} CC:= ${CXX} CFLAGS:= ${CXXFLAGS} -std=gnu++17 -Wno-error=stack-protector .PATH: ${DIST}/gdbsupport ${GDBARCHDIR} @ 1.2 log @Patch the build script and toolchain to allow passing through HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks the build. These variables are necessary to support building NetBSD from a GNU Guix or NixOS host, where /usr/include, /lib, and all but /bin/sh do not exist. In many cases, support for HOST_CPPFLAGS was incomplete. From Ryan Sundberg @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2020/09/17 16:36:39 christos Exp $ d34 1 d51 1 a51 1 CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector @ 1.2.4.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2024/08/14 23:54:50 christos Exp $ a33 1 -include ${DIST}/gdbsupport/common-defs.h \ d50 1 a50 1 CFLAGS:= ${CXXFLAGS} -std=gnu++17 -Wno-error=stack-protector @ 1.1 log @Add new libraries, adjust old ones @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.25 2020/09/17 02:17:52 christos Exp $ d48 1 @