mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-03 09:32:02 +00:00
Emscripten: --as-needed is not supported
This commit is contained in:
parent
475f902584
commit
0e3411cba4
1 changed files with 2 additions and 2 deletions
|
@ -200,12 +200,12 @@ unset ( FLUID_LIBS CACHE )
|
|||
unset ( ENABLE_UBSAN CACHE )
|
||||
|
||||
if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "Intel" )
|
||||
if ( NOT APPLE AND NOT OS2 )
|
||||
if ( NOT APPLE AND NOT OS2 AND NOT EMSCRIPTEN )
|
||||
set ( CMAKE_EXE_LINKER_FLAGS
|
||||
"${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed" )
|
||||
set ( CMAKE_SHARED_LINKER_FLAGS
|
||||
"${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
endif ( NOT APPLE AND NOT OS2 )
|
||||
endif ( NOT APPLE AND NOT OS2 AND NOT EMSCRIPTEN )
|
||||
|
||||
# define some warning flags
|
||||
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wno-unused-parameter -Wdeclaration-after-statement -Werror=implicit-function-declaration" )
|
||||
|
|
Loading…
Reference in a new issue