diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-02-24 11:04:40 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-02-24 13:51:57 +0000 |
commit | 23cc552f3ed67cc66a153d6d04e0f8859510574b (patch) | |
tree | ab334d6829c97c32be4931dd631b8dd540d89f39 /examples/grpc/magic8ball/grpc_server_example | |
parent | 9969e5032dad5d296876b0de7f506d0df7103aeb (diff) |
Disable -fPIE for the qtgrpc/qtprotobuf executables
If libprotobuf is not built with -fPIE enabled we cannot link it
to qtprotobufgen. Disable the flag until provisioning got the proper
update.
Do the same trick for all executables and libraries that are linked
to the libgrpc* or libproto* libraries.
TODO: Re-enable PIE once QTBUG-111485 is fixed.
Task-number: QTBUG-111485
Change-Id: I8735069c0c0ab61ec5b118ee5c261f77627e3f8c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 272957831e1e023872c6b483e96a0f2deb248039)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/grpc/magic8ball/grpc_server_example')
-rw-r--r-- | examples/grpc/magic8ball/grpc_server_example/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/grpc/magic8ball/grpc_server_example/CMakeLists.txt b/examples/grpc/magic8ball/grpc_server_example/CMakeLists.txt index b421d5f..75ca683 100644 --- a/examples/grpc/magic8ball/grpc_server_example/CMakeLists.txt +++ b/examples/grpc/magic8ball/grpc_server_example/CMakeLists.txt @@ -68,6 +68,11 @@ qt_add_executable(SimpleGrpcServer main.cpp ) +# If libprotobuf is not built with -fPIE enabled we cannot link it to the executables built +# with -fPIE. +# TODO: Re-enable PIE once QTBUG-111485 is fixed. +set_target_properties(MagicServerRunner PROPERTIES POSITION_INDEPENDENT_CODE FALSE) + target_link_libraries(SimpleGrpcServer PRIVATE Qt6::Core MagicServerRunner |