git: 86aa24afc629 - main - math/eclib: work-around to build with clang 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 Jun 2023 16:41:27 UTC
The branch main has been updated by thierry:
URL: https://cgit.FreeBSD.org/ports/commit/?id=86aa24afc629aefb9501fc55b6cdf1b94ce717e3
commit 86aa24afc629aefb9501fc55b6cdf1b94ce717e3
Author: Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-06-25 16:36:53 +0000
Commit: Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-06-25 16:36:53 +0000
math/eclib: work-around to build with clang 16
Adding "CXXFLAGS+=-std=c++11" to fix the build on 14-CURRENT.
Without that, it fails with this error:
In file included from unimod.cc:24:
In file included from ./eclib/unimod.h:27:
In file included from ./eclib/interface.h:51:
./eclib/templates.h:64:12: error: no member named 'ptr_fun' in namespace 'std'
using std::ptr_fun;
~~~~~^
--- interface.lo ---
In file included from interface.cc:24:
In file included from ./eclib/interface.h:51:
./eclib/templates.h:64:12: error: no member named 'ptr_fun' in namespace 'std'
using std::ptr_fun;
~~~~~^
1 error generated.
*** [interface.lo] Error code 1
PR: 271047
Reported by: pkg-fallout
---
math/eclib/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/math/eclib/Makefile b/math/eclib/Makefile
index 2bba0ad45dd2..528c05998935 100644
--- a/math/eclib/Makefile
+++ b/math/eclib/Makefile
@@ -21,6 +21,7 @@ USES= autoreconf compiler:c++11-lang libtool localbase
OPTIONS_DEFINE= DOCS
+CXXFLAGS+= -std=c++11
LIBS+= "-lm"
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-flint=${LOCALBASE} --with-boost=${LOCALBASE}