Linux build fixes. See #4880

This commit is contained in:
Henrik Rydgard 2013-12-19 01:03:22 +01:00
parent 7e3eaa6196
commit 83534c0490
2 changed files with 2 additions and 2 deletions

View File

@ -823,7 +823,7 @@ add_library(native STATIC
native/ext/jpge/jpge.cpp
native/ext/jpge/jpge.h)
include_directories(native)
target_link_libraries(native ${LIBZIP_LIBRARY} ${PNG_LIBRARY} rg_etc1 vjson stb_vorbis snappy ${GLEW_LIBRARIES})
target_link_libraries(native ${LIBZIP_LIBRARY} ${PNG_LIBRARY} rg_etc1 vjson stb_vorbis snappy rt ${GLEW_LIBRARIES})
if(ANDROID)
target_link_libraries(native log)

View File

@ -53,7 +53,7 @@ win32 {
else: LIBS += $$files($$P/dx9sdk/Lib/x86/*.lib)
}
linux {
LIBS += -ldl
LIBS += -ldl -lrt
PRE_TARGETDEPS += $$CONFIG_DIR/libCommon.a $$CONFIG_DIR/libCore.a $$CONFIG_DIR/libNative.a
packagesExist(sdl) {
DEFINES += QT_HAS_SDL