0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-20 04:12:15 +02:00

Add -Wl,--as-needed and -Wl,--no-undefined to the linker flags.

This commit is contained in:
Felix Geyer 2010-11-21 23:16:56 +01:00
parent 2c8da57ce5
commit 091985bd8d

View File

@ -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 )