diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2020-05-10 23:09:17 +0200 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2020-05-10 23:09:17 +0200 |
commit | 5c5d280dd547958a37824809b7a038efbb3aee3b (patch) | |
tree | ec8c8945e2ad7b85e5a1179f0f2e88d1a0f38c9e /src/libui_sdl/libui/unix | |
parent | d3f14b7a8bcba9a71b7008a5b78abdfd4b70cb34 (diff) |
Add -flto as link flag, also fix missing <string> include in main.cpp causing a build failure with gcc10
Diffstat (limited to 'src/libui_sdl/libui/unix')
-rw-r--r-- | src/libui_sdl/libui/unix/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libui_sdl/libui/unix/CMakeLists.txt b/src/libui_sdl/libui/unix/CMakeLists.txt index c69081e..39f6c0a 100644 --- a/src/libui_sdl/libui/unix/CMakeLists.txt +++ b/src/libui_sdl/libui/unix/CMakeLists.txt @@ -65,7 +65,7 @@ macro(_handle_static) OUTPUT ${_oname} DEPENDS ${_LIBUINAME} COMMAND - ld -r --whole-archive ${_aname} -o ${_oname} + ${CMAKE_LINKER} -r --whole-archive ${_aname} -o ${_oname} COMMAND objcopy --localize-hidden ${_oname} COMMENT "Removing hidden symbols") |