pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/cmake



Module Name:    pkgsrc
Committed By:   maya
Date:           Fri Jul 31 12:35:27 UTC 2020

Modified Files:
        pkgsrc/devel/cmake: Makefile.common

Log Message:
cmake: fix build on NetBSD releases such as 9.0.

NetBSD stdio.h has a bug with visibility of functions, so we get errors:
 error: '::vscanf' has not been declared

Define the other macro that can reach these definitions.

Issue already fixed by joerg in NetBSD stdio.h r1.35.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/cmake/Makefile.common

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/cmake/Makefile.common
diff -u pkgsrc/devel/cmake/Makefile.common:1.2 pkgsrc/devel/cmake/Makefile.common:1.3
--- pkgsrc/devel/cmake/Makefile.common:1.2      Fri Jul 31 09:02:31 2020
+++ pkgsrc/devel/cmake/Makefile.common  Fri Jul 31 12:35:27 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2020/07/31 09:02:31 wiz Exp $
+# $NetBSD: Makefile.common,v 1.3 2020/07/31 12:35:27 maya Exp $
 # used by devel/cmake-gui/Makefile
 
 .include "version.mk"
@@ -15,3 +15,6 @@ DISTINFO_FILE=        ${.CURDIR}/../../devel/cm
 PATCHDIR=      ${.CURDIR}/../../devel/cmake/patches
 
 USE_LANGUAGES= c c++11
+
+# Workaround issue in NetBSD before stdio.h r1.35 (NetBSD 9_STABLE)
+CXXFLAGS.NetBSD+=      -D_NETBSD_SOURCE



Home | Main Index | Thread Index | Old Index