Link to the proper DLOpen to remove linux ldl flag (Let Cmake handle it)

This commit is contained in:
Bradley Clemetson 2015-08-10 21:53:49 -07:00
parent 52ef7fe048
commit 8211f5d497

View file

@ -58,7 +58,8 @@ if(${OPENAL_FOUND} AND NOT(${CMAKE_SYSTEM_NAME} MATCHES "Darwin"))
list(APPEND yquake2LinkerFlags ${OPENAL_LIBRARY})
endif()
list(APPEND yquake2LinkerFlags "-L/usr/lib -lm -ldl -rdynamic")
list(APPEND yquake2LinkerFlags "-lm -rdynamic")
list(APPEND yquake2LinkerFlags ${CMAKE_DL_LIBS})
add_definitions(-DZIP -DNOUNCRYPT)