aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/unix
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-05-10 23:11:24 +0200
committerGitHub <noreply@github.com>2020-05-10 23:11:24 +0200
commitbc9c989f61b0f7e346d7bd688b4af8480bd3264b (patch)
treeec8c8945e2ad7b85e5a1179f0f2e88d1a0f38c9e /src/libui_sdl/libui/unix
parentd3f14b7a8bcba9a71b7008a5b78abdfd4b70cb34 (diff)
parent5c5d280dd547958a37824809b7a038efbb3aee3b (diff)
Merge pull request #621 from nadiaholmquist/fix/lto-ldflag
Add -flto as link flag, also fix missing <string> include in main.cpp causing the build to fail with GCC10
Diffstat (limited to 'src/libui_sdl/libui/unix')
-rw-r--r--src/libui_sdl/libui/unix/CMakeLists.txt2
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")