Build Error Fix: Do Not Hardcode Install Path 53/107453/2
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 28 Dec 2016 06:23:53 +0000 (15:23 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 29 Dec 2016 01:31:00 +0000 (10:31 +0900)
This fixes build errors in 64bit systems.
Never hardcode library install paths.

Change-Id: I41b337ed9a918353692d94d23f27b05e512cb776
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
capi-network-wifi-manager.pc.in
packaging/capi-network-wifi-manager.spec

index ee6db75..d86dd03 100755 (executable)
@@ -2,8 +2,8 @@
 
 prefix=@PREFIX@
 exec_prefix=/usr
-libdir=/usr/lib
-includedir=/usr/include/network
+libdir=@LIB_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@/network
 
 Name: @PC_NAME@
 Description: @PACKAGE_DESCRIPTION@
index c47d5e7..54c7ad6 100755 (executable)
@@ -36,6 +36,7 @@ Network Wi-Fi Manager library in Tizen C API (Development)
 export CFLAGS+=' -Wno-unused-local-typedefs'
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 cmake -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
+      -DLIB_INSTALL_DIR=%{_libdir} -DINCLUDE_INSTALL_DIR=%{_includedir} \
        -DLIB_PATH=%{_lib} \
        .