Fix hardcoded library path for rpath 70/3770/1
authorBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Thu, 30 May 2013 13:19:49 +0000 (15:19 +0200)
committerBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Thu, 30 May 2013 13:19:49 +0000 (15:19 +0200)
CMakeLists.txt

index 3612b63..d84f1f0 100755 (executable)
@@ -54,7 +54,7 @@ ENDIF("${ARCH}" MATCHES "^arm.*")
 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
 ADD_DEFINITIONS("-DTIZEN_DEBUG")
 
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
 
 aux_source_directory(src SOURCES)
 ADD_LIBRARY(${fw_name} SHARED ${SOURCES})