void-packages/srcpkgs/qt6-tools/patches/pie.patch

31 lines
1.4 KiB
Diff

--- a/src/linguist/lupdate/CMakeLists.txt 2023-03-28 16:23:12.000000000 +0200
+++ - 2023-04-03 20:56:23.919801770 +0200
@@ -95,11 +95,11 @@
WrapLibClang::WrapLibClang
)
-if(QT_FEATURE_clangcpp)
- # If libclangTooling.a is not built with -fPIE enabled we cannot link it to lupdate.
- # TODO: Re-enable PIE once clang is built with PIE in provisioning.
- set_target_properties(${target_name} PROPERTIES POSITION_INDEPENDENT_CODE FALSE)
-endif()
+#if(QT_FEATURE_clangcpp)
+# # If libclangTooling.a is not built with -fPIE enabled we cannot link it to lupdate.
+# # TODO: Re-enable PIE once clang is built with PIE in provisioning.
+# set_target_properties(${target_name} PROPERTIES POSITION_INDEPENDENT_CODE FALSE)
+#endif()
qt_internal_extend_target(${target_name} CONDITION MSVC
DEFINES _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING)
--- a/src/qdoc/CMakeLists.txt 2023-03-28 16:23:12.000000000 +0200
+++ - 2023-04-03 20:56:53.148131457 +0200
@@ -98,7 +98,7 @@
# If libclangTooling.a is not built with -fPIE enabled we cannot link it to qdoc.
# TODO: Re-enable PIE once clang is built with PIE in provisioning.
-set_target_properties(${target_name} PROPERTIES POSITION_INDEPENDENT_CODE FALSE)
+#set_target_properties(${target_name} PROPERTIES POSITION_INDEPENDENT_CODE FALSE)
qt_internal_extend_target(${target_name} CONDITION TARGET Qt::QmlPrivate
LIBRARIES