Fix build

There is no more internal function for adding general linker flags.
Let's use the appropriate cmake function right away, regardless of the
compiler choice. This is also how global.pri handled it.

Change-Id: I20c9002a31aa4d7e64c1c59d8d67118774da337c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Simon Hausmann 2019-03-06 10:38:22 +01:00
parent 32d4f139c8
commit d72b717119
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ if (LINUX AND NOT CMAKE_CROSSCOMPILING AND BUILD_SHARED_LIBS)
endif()
endif()
if (ELF_INTERPRETER)
qt_internal_add_link_flags(Core "-Wl,-e,qt_core_boilerplate")
target_link_options(Core PRIVATE "-Wl,-e,qt_core_boilerplate")
target_compile_definitions(Core PRIVATE ELF_INTERPRETER="${ELF_INTERPRETER}")
endif()
endif()