Files
gentoo/dev-libs/libofx/files/libofx-0.10.9-fix_cxxflags.patch
Nicolas PARLANT fbe7833d77 dev-libs/libofx: fix cxxflags, filter-lto
fix cxxflags overrided by cflags in configure.ac
bundled tree.hh could be updated but c++14 is required anyway by
libxmlpp:2.6
filter-lto (ODR)

Closes: https://bugs.gentoo.org/967003
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/155
Merges: https://codeberg.org/gentoo/gentoo/pulls/155
Signed-off-by: Sam James <sam@gentoo.org>
2026-02-27 15:19:02 +00:00

16 lines
629 B
Diff

See PR pending https://github.com/libofx/libofx/pull/104.patch
fix typo(?) CFLAGS -> CXXFLAGS
This prevents the addition of C flags not compatible with CXX
Fix bug 967003 where -std=c++14 is overrided by CFLAGS
--- a/configure.ac
+++ b/configure.ac
@@ -45,7 +45,7 @@ then
[Define if GCC visibility extensions are supported])
VISIBILITY_FLAGS="-fvisibility=hidden"
CFLAGS="$VISIBILITY_FLAGS $CFLAGS"
- CXXFLAGS="$VISIBILITY_FLAGS -fvisibility-inlines-hidden $CFLAGS"
+ CXXFLAGS="$VISIBILITY_FLAGS -fvisibility-inlines-hidden $CXXFLAGS"
fi
## Pass -DIN_LIBOFX to the compiler so we can detect it and include config.h