gentoo-ebuilds/media-gfx/mandelbulber/files/mandelbulber-2.33-gsl.patch
Sam James 6e25dc1d7e
media-gfx/mandelbulber: fix build when dev-cpp/ms-gsl is installed
By injecting -I/usr/include/gsl, `#include <algorithm>` starts to mean
"use ms-gsl's algorithm" rather than the C++ stdlib one. But all of the
includes for ms-gsl here are properly namespaced, e.g. <gsl/foo.h>, so
we can drop the explicit -I*.

Closes: https://bugs.gentoo.org/834692
Signed-off-by: Sam James <sam@gentoo.org>
2025-04-15 23:07:56 +01:00

18 lines
689 B
Diff

https://bugs.gentoo.org/834692
https://github.com/buddhi1980/mandelbulber2/pull/972
https://github.com/microsoft/GSL/issues/466
By injecting -I/usr/include/gsl, `#include <algorithm>` starts to mean
"use ms-gsl's algorithm" rather than the C++ stdlib one. But all of the
includes for ms-gsl here are properly namespaced, e.g. <gsl/foo.h>, so
we can drop the explicit -I*.
--- a/makefiles/common.pri
+++ b/makefiles/common.pri
@@ -122,7 +122,6 @@ macx:DEFINES += "SHARED_DIR_IS_APP_DIR"
# test hardcoded lib path for gsl in travis container
#QMAKE_CXXFLAGS += -I/usr/include/gsl
-QMAKE_CXXFLAGS += -I/usr/include/gsl
m1:QMAKE_CXXFLAGS += -I/opt/homebrew/include
# library linking