Bug#1087764: FTBFS: /usr/bin/ld: unrecognized option '-Wl'
Brad King
brad.king at kitware.com
Fri Nov 22 19:52:44 GMT 2024
On Fri, Nov 22, 2024 at 12:29 PM Brad King wrote:
> there is a bug in ParaView's CMake code
I've posted a patch to the ParaView issue:
* https://gitlab.kitware.com/paraview/paraview/-/issues/22806#note_1596824
Further discussion is needed there to select a final change
for upstream ParaView, but the patch could be applied in
the Debian package for now:
```patch
diff --git a/CMake/ParaViewCompilerExtraFlags.cmake
b/CMake/ParaViewCompilerExtraFlags.cmake
index 4feb06da0c..2e1e95c80f 100644
--- a/CMake/ParaViewCompilerExtraFlags.cmake
+++ b/CMake/ParaViewCompilerExtraFlags.cmake
@@ -37,7 +37,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set_target_properties(paraviewbuild
PROPERTIES
INTERFACE_LINK_OPTIONS
- "LINKER:SHELL:${PARAVIEW_EXTRA_SHARED_LINKER_FLAGS} -lc
${CMAKE_SHARED_LINKER_FLAGS}")
+ "LINKER:SHELL:${PARAVIEW_EXTRA_SHARED_LINKER_FLAGS};SHELL:-lc
${CMAKE_SHARED_LINKER_FLAGS}")
endif()
endif()
```
-Brad
More information about the debian-science-maintainers
mailing list