Change gbm backend lookup directory to support 64-bit 26/52326/2
authorSangwon Ha <sw815.ha@samsung.com>
Mon, 8 Jun 2015 06:46:44 +0000 (15:46 +0900)
committerSangjin Lee <lsj119@samsung.com>
Mon, 23 Nov 2015 02:55:58 +0000 (18:55 -0800)
Change-Id: I33208f6254147b37b33c463b11c4fc1b7ae4b31a

Makefile
packaging/libgbm.spec

index 7c077595108c8f6424b7d0c6e0f0f9ddc3101aea..7caa560187ba2c5c9325aad6e17b674d44a7ce1e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ CFLAGS += -Wall -ludev -fPIC
 GBM_BACKENDS_DIR = $(SRC_DIR)/backends
 
 #gbm backend module location
-CFLAGS += -DMODULEDIR='"/usr/lib/gbm"'
+CFLAGS += -DMODULEDIR='"$(libdir)/gbm"'
 
 #gbm main source
 GBM_SRCS +=  \
index 2a5c7f2cebcf6e9c6d48f373a333165b095bdb9f..e125232e40dd985802fa923c118c4189ce638837 100644 (file)
@@ -30,7 +30,8 @@ Development header files for use with Wayland GBM
 
 %build
 export GBM_SO_VER=%{version}
-make
+make clean
+make libdir=%{_libdir}
 
 %install
 mkdir -p %{buildroot}%{_includedir}