On Wed, 31 Oct 2018 09:15:38 -0300 "Elias M. Mariani" <marianiel...@gmail.com> wrote:
> All give the same error: > eg++: error: -fuse-linker-plugin is not supported in this configuration > Maybe someone with more knowledge sees the error as spots the problem > right away... The build system tries to use link-time optimization (-flto -fuse-linker-plugin). This fails because -fuse-linker-plugin "is available in gold or in GNU ld 2.21 or newer" (says man egcc), but OpenBSD has GNU ld 2.17. x11/lxqt/build-tools enables LTO for gcc, so the failure would happen on ports-gcc arches like powerpc. Most packages outside LXQt don't enable LTO, so I disabled LTO by modifying x11/lxqt/build-tools. This allows my powerpc machine to build qtermwidget and then build and run qterminal; I don't have time to try the rest of LXQt. I used some old snapshot packages like qtbase-5.9.6p1 instead of 5.9.7. Here's my diff for x11/lxqt/build-tools (but missing the REVISION bump); the same diff is in the attachment. Index: patches/patch-cmake_modules_LXQtCompilerSettings_cmake =================================================================== RCS file: /cvs/ports/x11/lxqt/build-tools/patches/patch-cmake_modules_LXQtCompilerSettings_cmake,v retrieving revision 1.1.1.1 diff -u -p -u -r1.1.1.1 patch-cmake_modules_LXQtCompilerSettings_cmake --- patches/patch-cmake_modules_LXQtCompilerSettings_cmake 14 Sep 2018 15:17:26 -0000 1.1.1.1 +++ patches/patch-cmake_modules_LXQtCompilerSettings_cmake 2 Nov 2018 18:09:25 -0000 @@ -20,3 +20,13 @@ Index: cmake/modules/LXQtCompilerSetting ) set(CMAKE_EXE_LINKER_FLAGS "${SYMBOLIC_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}" +@@ -153,7 +153,8 @@ endif() + # Turn on more aggrassive optimizations not supported by CMake + # References: https://wiki.qt.io/Performance_Tip_Startup_Time + #----------------------------------------------------------------------------- +-if (CMAKE_COMPILER_IS_GNUCXX OR LXQT_COMPILER_IS_CLANGCXX) ++if ((CMAKE_COMPILER_IS_GNUCXX OR LXQT_COMPILER_IS_CLANGCXX) AND ++ NOT (CMAKE_SYSTEM_NAME STREQUAL OpenBSD)) + # -flto: use link-time optimizations to generate more efficient code + if (CMAKE_COMPILER_IS_GNUCXX) + set(LTO_FLAGS "-flto -fuse-linker-plugin") -- George Koehler <kern...@gmail.com>
build-tools.diff
Description: Binary data