@@ -, +, @@ CMAKE: fix linking order this also fixes linking with as-needed wrt https://github.com/minetest/minetest/issues/617 --- a/src/CMakeLists.txt +++ a/src/CMakeLists.txt @@ -427,18 +427,18 @@ if(BUILD_CLIENT) set(minetest_LIBS ${PROJECT_NAME} ${ZLIB_LIBRARIES} - ${IRRLICHT_LIBRARY} + ${X11_LIBRARIES} ${OPENGL_LIBRARIES} + ${OPENGLES2_LIBRARIES} ${JPEG_LIBRARIES} ${BZIP2_LIBRARIES} ${PNG_LIBRARIES} - ${X11_LIBRARIES} + ${IRRLICHT_LIBRARY} ${GETTEXT_LIBRARY} ${SOUND_LIBRARIES} ${SQLITE3_LIBRARY} ${LUA_LIBRARY} ${JSON_LIBRARY} - ${OPENGLES2_LIBRARIES} ${PLATFORM_LIBS} ${CLIENT_PLATFORM_LIBS} )