fix 64bits build-error 60/273360/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 4 Apr 2022 02:52:14 +0000 (11:52 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 5 Apr 2022 02:40:28 +0000 (11:40 +0900)
Change-Id: I0f6aa4cec403eb374663bf280d087c18375aad90

configure.ac
gbm.pc.in
packaging/libgbm.spec

index 274c567..e72c522 100644 (file)
@@ -32,5 +32,6 @@ AC_CONFIG_FILES([
    Makefile
    gbm.pc
 ])
+AC_SUBST(LIBDIR)
 AC_OUTPUT
 
index 5219f5e..dd13701 100644 (file)
--- a/gbm.pc.in
+++ b/gbm.pc.in
@@ -1,6 +1,6 @@
 prefix=/usr
 exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=@LIBDIR@
 includedir=${prefix}/include
 
 Name: gbm
index e58b6f5..588c911 100644 (file)
@@ -31,7 +31,7 @@ Development header files for use with Wayland GBM
 
 %build
 %reconfigure --disable-static --enable-tbm --enable-tbm-queue \
-            CFLAGS="${CFLAGS} -Wall -Werror"
+            CFLAGS="${CFLAGS} -Wall -Werror" LIBDIR=%{_libdir}
 make libdir=%{_libdir} major_ver=%{MAJOR_VER} minor_ver=%{MINOR_VER}
 
 %install