diff options
author | Bernd Waibel <waebbl@gmail.com> | 2020-11-28 00:56:21 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-12-07 10:56:28 +0200 |
commit | 2ca77f3783cb66686e621382fe9f49a6798159f9 (patch) | |
tree | 84f69cce8517cb35ac6b0c9ad2dc8438dde4155c /media-gfx/openscad/files | |
parent | dev-python/libvirt-python-9999: Update PYTHON_COMPAT (diff) | |
download | gentoo-2ca77f3783cb66686e621382fe9f49a6798159f9.tar.gz gentoo-2ca77f3783cb66686e621382fe9f49a6798159f9.tar.bz2 gentoo-2ca77f3783cb66686e621382fe9f49a6798159f9.zip |
media-gfx/openscad: fix issue with cgal
Fixes the issue of not building against cgal-5.1.
Also installs locales into correct dir.
Bug: https://bugs.gentoo.org/755842
Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Bernd Waibel <waebbl@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18435
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx/openscad/files')
-rw-r--r-- | media-gfx/openscad/files/openscad-2019.05-0003-change-C-standard-to-c-14.patch | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/media-gfx/openscad/files/openscad-2019.05-0003-change-C-standard-to-c-14.patch b/media-gfx/openscad/files/openscad-2019.05-0003-change-C-standard-to-c-14.patch new file mode 100644 index 000000000000..3863d5631b9a --- /dev/null +++ b/media-gfx/openscad/files/openscad-2019.05-0003-change-C-standard-to-c-14.patch @@ -0,0 +1,76 @@ +From 02f9a4eca87d7713a8345b8513423d9d4a5127e0 Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl@gmail.com> +Date: Fri, 27 Nov 2020 18:49:09 +0100 +Subject: [PATCH] change C++ standard to c++14 + +Signed-off-by: Bernd Waibel <waebbl@gmail.com> +--- + c++11.pri => c++std.pri | 21 ++++++++------------- + common.pri | 2 +- + 2 files changed, 9 insertions(+), 14 deletions(-) + rename c++11.pri => c++std.pri (74%) + +diff --git a/c++11.pri b/c++std.pri +similarity index 74% +rename from c++11.pri +rename to c++std.pri +index 0a2c3b6..aac656d 100644 +--- a/c++11.pri ++++ b/c++std.pri +@@ -4,16 +4,16 @@ macx { + dirs = $${BOOSTDIR} $${QMAKE_LIBDIR} + for(dir, dirs) { + system(otool -L $${dir}/libboost_thread* | grep libc++ >& /dev/null ) { +- message("Using libc++11") ++ message("Using libc++") + CONFIG += libc++ + } + else { + message("Using libstdc++") + CONFIG += libstdc++ +- c++11 { +- # libc++ is a requirement for using C++11 +- warning("Disabling C++11 since libstdc++ dependencies were found") +- CONFIG -= c++11 ++ c++std { ++ # libc++ is a requirement for using C++14 ++ warning("Disabling C++14 since libstdc++ dependencies were found") ++ CONFIG -= c++std + } + } + } +@@ -25,9 +25,9 @@ macx { + } + } + +-c++11 { +- QMAKE_CXXFLAGS += -std=c++11 +- message("Using C++11") ++c++std { ++ QMAKE_CXXFLAGS += -std=c++14 ++ message("Using C++14") + + *clang*: { + # 3rd party libraries will probably violate this for a long time +@@ -41,8 +41,3 @@ c++11 { + QMAKE_OBJECTIVE_CFLAGS_WARN_ON += $$CXX11_SUPPRESS_WARNINGS + } + } +-else { +- *clang* { +- QMAKE_CXXFLAGS_WARN_ON += -Wno-c++11-extensions +- } +-} +diff --git a/common.pri b/common.pri +index 1110757..d1d5edc 100644 +--- a/common.pri ++++ b/common.pri +@@ -30,4 +30,4 @@ include(win.pri) + include(flex.pri) + include(bison.pri) + include(opengl.pri) +-include(c++11.pri) ++include(c++std.pri) +-- +2.29.2 + |