Module Name: src Committed By: rin Date: Sun Aug 20 02:07:54 UTC 2023
Modified Files: src/lib: Makefile Log Message: lib/Makefile: Hook libgmp also for MKGDB=yes build Now, gdb 13 can be built by clang, at least on amd64. To generate a diff of this commit: cvs rdiff -u -r1.295 -r1.296 src/lib/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/Makefile diff -u src/lib/Makefile:1.295 src/lib/Makefile:1.296 --- src/lib/Makefile:1.295 Sat Jun 17 15:47:31 2023 +++ src/lib/Makefile Sun Aug 20 02:07:54 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.295 2023/06/17 15:47:31 christos Exp $ +# $NetBSD: Makefile,v 1.296 2023/08/20 02:07:54 rin Exp $ # from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91 .include <bsd.own.mk> @@ -100,12 +100,17 @@ SUBDIR+= ../external/gpl3/${EXTERNAL_GCC # specific build area, but we get better parallelism this way. # We don't build compat versions of these. . if !defined(MLIBDIR) && (${MKGCCCMDS} != "no") -SUBDIR+= ../external/lgpl3/gmp/lib/libgmp SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr SUBDIR+= ../external/lgpl3/mpc/lib/libmpc . endif .endif +# GCC and GDB >= 13 require GMP. +.if !defined(MLIBDIR) && (${MKGCCCMDS} != "no" || \ + (${MKGDB} != "no" && ${HAVE_GDB:U0} >= 1320)) +SUBDIR+= ../external/lgpl3/gmp/lib/libgmp +.endif + # # Libraries that depend upon any listed previously # (and those that depend upon these [and ...])