Fix hardcoding library path.
authorJunfeng <junfeng.dong@intel.com>
Thu, 21 Mar 2013 12:21:43 +0000 (20:21 +0800)
committerlifang <fangx.li@intel.com>
Thu, 28 Mar 2013 21:39:01 +0000 (05:39 +0800)
Change-Id: I4eb513a785fe45b55644b1169473ecb8598477de

CMakeLists.txt
capi-network-nfc.pc.in

index 267b141..0aadfd9 100644 (file)
@@ -54,7 +54,7 @@ ENDIF("${ARCH}" STREQUAL "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})
index 8792e0a..2b11cf6 100644 (file)
@@ -3,7 +3,7 @@
 
 prefix=@PREFIX@
 exec_prefix=/usr
-libdir=/usr/lib
+libdir=@LIB_INSTALL_DIR@
 includedir=/usr/include/network
 
 Name: @PC_NAME@