pkgsrc-Users archive

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

[PATCH] Re: CXXFLAGS won't work at do-package stage (?)



Thanks nia,
I'm testing with following patch (works fine at 9.3)

Index: geography/R-s2/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/geography/R-s2/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- geography/R-s2/Makefile	1 Dec 2024 05:00:41 -0000	1.6
+++ geography/R-s2/Makefile	3 Jan 2025 05:49:41 -0000
@@ -18,7 +18,15 @@
 TEST_DEPENDS+=	tex-url-[0-9]*:../../print/tex-url
 TEST_DEPENDS+=	tex-xkeyval-[0-9]*:../../print/tex-xkeyval
 
-USE_LANGUAGES=	c c++
+USE_LANGUAGES=		c c++
+.include "../../mk/bsd.prefs.mk"
+
+# https://mail-index.netbsd.org/pkgsrc-users/2025/01/02/msg040775.html
+.if ${OPSYS} == "NetBSD"
+.  if ${OPSYS_VERSION} < 090900
+CWRAPPERS_APPEND.cxx=	-D_NETBSD_SOURCE
+.  endif
+.endif
 
 .include "../../math/R/Makefile.extension"
 .include "../../devel/R-Rcpp/buildlink3.mk"

-- 
Makoto Fujiwara
mef%NetBSD.org@localhost
makoto%if.t.u-tokyo.ac.jp@localhost


Home | Main Index | Thread Index | Old Index