spdlog: Reduce size of hammer to bring in external fmtlib.

Some dependent packages link fine without fmtlib (eg. libixion)
and fmtlib ending up in their libtool file is causing problems
of its own.

This way only packages that are including those relevant fmtlib
symbols need to be explicitly linked against fmtlib.
This commit is contained in:
nia 2022-11-28 14:38:53 +00:00
parent c26ec50db7
commit 8fcb332f23
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.4 2022/11/26 13:47:13 nia Exp $
# $NetBSD: buildlink3.mk,v 1.5 2022/11/28 14:38:53 nia Exp $
BUILDLINK_TREE+= spdlog
@ -11,7 +11,6 @@ BUILDLINK_PKGSRCDIR.spdlog?= ../../devel/spdlog
# Support the use of SPDLOG_FMT_EXTERNAL.
# Sometimes tweakme.h is not properly applied...
BUILDLINK_CPPFLAGS.spdlog+= -DSPDLOG_FMT_EXTERNAL
BUILDLINK_LDFLAGS.spdlog+= -lfmt
.include "../../textproc/fmtlib/buildlink3.mk"
.endif # SPDLOG_BUILDLINK3_MK

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2022/09/11 12:51:45 wiz Exp $
# $NetBSD: Makefile,v 1.11 2022/11/28 14:38:53 nia Exp $
PKGNAME= nxengine-evo-2.6.5.1
PKGREVISION= 4
@ -20,6 +20,8 @@ USE_CMAKE= yes
USE_TOOLS+= pax
USE_LANGUAGES= c c++
LDFLAGS+= -lfmt
WRKSRC= ${WRKDIR}/nxengine-evo-2.6.5-1
ALL_ENV+= SDL2DIR=${PREFIX}