mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-29 00:59:56 -06:00
Add -flto as link flag, also fix missing <string> include in main.cpp causing a build failure with gcc10
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user