mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-14 04:53:12 -04:00
Add -Wl,--as-needed and -Wl,--no-undefined to the linker flags.
This commit is contained in:
parent
2c8da57ce5
commit
091985bd8d
@ -28,7 +28,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
-ansi -Wall -Wextra -Wundef -Wold-style-cast -Wnon-virtual-dtor -Wcast-align
|
||||
-Wpointer-arith -Wformat-security -Woverloaded-virtual -Wno-long-long)
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-add-needed")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-add-needed -Wl,--as-needed -Wl,--no-undefined")
|
||||
endif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
if( APPLE OR MINGW )
|
||||
|
Loading…
x
Reference in New Issue
Block a user