Index: amarok-2.7.1/src/CMakeLists.txt
===================================================================
--- amarok-2.7.1.orig/src/CMakeLists.txt	2013-05-15 22:49:33.974258000 +0000
+++ amarok-2.7.1/src/CMakeLists.txt	2013-05-15 22:49:33.970258000 +0000
@@ -949,7 +949,7 @@
 endif()
 
 if( NOT BUILD_MYSQLE_COLLECTION )
-    target_link_libraries(amaroklib ${MYSQL_LIBRARIES} ${ZLIB_LIBRARIES})
+    target_link_libraries(amaroklib ${MYSQL_LIBRARIES} -L/usr/lib/mysql ${ZLIB_LIBRARIES})
 endif( NOT BUILD_MYSQLE_COLLECTION )
 
 if(WIN32)
Index: amarok-2.7.1/src/core-impl/collections/db/sql/mysqlservercollection/CMakeLists.txt
===================================================================
--- amarok-2.7.1.orig/src/core-impl/collections/db/sql/mysqlservercollection/CMakeLists.txt	2013-05-15 22:49:33.974258000 +0000
+++ amarok-2.7.1/src/core-impl/collections/db/sql/mysqlservercollection/CMakeLists.txt	2013-05-15 22:49:33.970258000 +0000
@@ -24,6 +24,7 @@
     ${QT_QTCORE_LIBRARY}
     ${QT_QTGUI_LIBRARY}
     ${MYSQL_LIBRARIES}
+    -L/usr/lib/mysql
     ${CMAKE_DL_LIBS}
     ${ZLIB_LIBRARIES}
 )
Index: amarok-2.7.1/src/core-impl/collections/db/sql/mysqlecollection/CMakeLists.txt
===================================================================
--- amarok-2.7.1.orig/src/core-impl/collections/db/sql/mysqlecollection/CMakeLists.txt	2013-05-15 22:49:33.974258000 +0000
+++ amarok-2.7.1/src/core-impl/collections/db/sql/mysqlecollection/CMakeLists.txt	2013-05-15 22:49:33.970258000 +0000
@@ -24,6 +24,7 @@
     ${QT_QTCORE_LIBRARY}
     ${QT_QTGUI_LIBRARY}
     ${MYSQL_EMBEDDED_LIBRARIES}
+    -L/usr/lib/mysql
     ${CMAKE_DL_LIBS}
     ${ZLIB_LIBRARIES}
 )
