Fix lib64 at luaconf.h 96/288396/1 accepted/tizen_8.0_base accepted/tizen_base accepted/tizen_base_tool tizen_8.0_base tizen_base accepted/tizen/8.0/base/20231005.044931 accepted/tizen/base/20230714.003413 accepted/tizen/base/tool/20230220.005059 submit/tizen_base/20230216.061556 tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 16 Feb 2023 06:05:01 +0000 (15:05 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 16 Feb 2023 06:05:01 +0000 (15:05 +0900)
Change-Id: I41947827ac1b5c48caaa32464c485aa4645ce3e9

packaging/lua.spec

index 8929e34..b806987 100644 (file)
@@ -82,6 +82,11 @@ cp %{SOURCE1001} .
 export CFLAGS+=" -fPIC -DLUA_USE_LINUX"
 export LDFLAGS+=" -Wl,-z,relro -Wl,-E -ldl -lreadline -lhistory -lncurses"
 sed -i -e "s@/usr/local/@/usr/@g" src/luaconf.h
+
+%ifarch x86_64 aarch64
+sed -i -e "s/lib\//lib64\//g" src/luaconf.h
+%endif
+
 %{__make} %{?_smp_mflags} -C src CC="%{__cc}" MYCFLAGS="$CFLAGS" MYLIBS="$LDFLAGS" V=%{major_version} all
 
 %check