svn commit: r545234 - head/devel/cmake
Piotr Kubaj
pkubaj at FreeBSD.org
Tue Aug 18 15:10:09 UTC 2020
Author: pkubaj
Date: Tue Aug 18 15:10:08 2020
New Revision: 545234
URL: https://svnweb.freebsd.org/changeset/ports/545234
Log:
devel/cmake: fix build on GCC architectures
Manually define __BSD_VISIBLE to make timespec_get() available:
In file included from /usr/local/lib/gcc9/include/c++/chrono:41,
from /wrkdirs/usr/ports/devel/cmake/work/cmake-3.18.1/Source/cmDuration.h:5,
from /wrkdirs/usr/ports/devel/cmake/work/cmake-3.18.1/Source/cmSystemTools.h:19,
from /wrkdirs/usr/ports/devel/cmake/work/cmake-3.18.1/Source/cmSystemTools.cxx:13:
/usr/local/lib/gcc9/include/c++/ctime:80:11: error: '::timespec_get' has not been declared
80 | using ::timespec_get;
| ^~~~~~~~~~~~
PR: 248726
Modified:
head/devel/cmake/Makefile
Modified: head/devel/cmake/Makefile
==============================================================================
--- head/devel/cmake/Makefile Tue Aug 18 14:56:40 2020 (r545233)
+++ head/devel/cmake/Makefile Tue Aug 18 15:10:08 2020 (r545234)
@@ -46,6 +46,8 @@ CPACK_USES_OFF= libarchive
CONFLICTS_INSTALL= cmake-modules-*
+CXXFLAGS+= -D__BSD_VISIBLE
+
.include <bsd.port.pre.mk>
.if defined(STRIP) && ${STRIP} != "" && !defined(WITH_DEBUG)
More information about the svn-ports-head
mailing list