mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(build): Remove '-pie' linker flag and fix strmiids dependency on Windows
One part fixes #4280 (removing this flag giving qTox on Windows able to start properly), another part fixes my mistake in #4258 (strmiids still needed for linking, but previous searching of this libstrmiids.a wasn't include, for example, '/mingw32/i686-w64-mingw32/lib'. So I just add this lib to $ALL_LIBRARIES, because it exists in system by default).
This commit is contained in:
parent
6b5d25acc7
commit
f6b8601897
|
@ -46,11 +46,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-overflow")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-aliasing")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
|
||||
|
||||
if (NOT WIN32)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstack-protector")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
|
|
|
@ -119,6 +119,10 @@ if(APPLE)
|
|||
search_dependency(IOKIT FRAMEWORK IOKit OPTIONAL)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set(ALL_LIBRARIES ${ALL_LIBRARIES} strmiids)
|
||||
endif()
|
||||
|
||||
if (NOT GIT_DESCRIBE)
|
||||
execute_process(
|
||||
COMMAND git describe --tags
|
||||
|
|
Loading…
Reference in New Issue
Block a user