Fix compilation on Natty with the Gold linker

This commit is contained in:
David Sansome 2010-11-22 22:57:44 +00:00
parent 0d96793e59
commit a30f9a6045

View File

@ -818,6 +818,15 @@ if (WIN32)
)
endif (WIN32)
if (UNIX AND NOT APPLE)
# Hack: the Gold linker pays attention to the order that libraries are
# specified on the link line. -lX11 and -ldl are provided earlier in the link
# command but they're actually used by libraries that appear after them, so
# they end up getting ignored. This appends them to the very end of the link
# line, ensuring they're always used.
target_link_libraries(clementine_lib -lX11 -ldl)
endif (UNIX AND NOT APPLE)
add_dependencies(clementine_lib qtsingleapplication)