Use LDFLAGS to pass linker options 91/34691/1 accepted/tizen_3.0.m2_base accepted/tizen_common accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable dh0128.kwak/tizen_3.0_base_20190515 sandbox/dh0128.kwak/tizen_3.0_base_20190515 tizen_3.0 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2_base accepted/tizen/3.0.m2/base/20170104.082018 accepted/tizen/3.0/base/20161028.102926 accepted/tizen/4.0/base/20170811.092905 accepted/tizen/4.0/base/20170828.221219 accepted/tizen/base/20151223.052259 accepted/tizen/common/20150202.085525 accepted/tizen/mobile/20150202.101919 accepted/tizen/tv/20150202.102356 accepted/tizen/wearable/20150202.100120 submit/tizen/20150130.124627 submit/tizen_3.0.m2_base/20170104.073748 submit/tizen_3.0_base/20161028.062323 submit/tizen_4.0_base/20170811.071500 submit/tizen_4.0_base/20170828.000000 submit/tizen_4.0_base/20170828.000001 submit/tizen_base/20151223.111112 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release
authorYury Usishchev <y.usishchev@samsung.com>
Fri, 30 Jan 2015 12:39:25 +0000 (15:39 +0300)
committerYury Usishchev <y.usishchev@samsung.com>
Fri, 30 Jan 2015 12:41:08 +0000 (15:41 +0300)
Change-Id: Idea15fc0b3d0d124c6d1a24d96d3825c01040fb9
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
packaging/lua.spec

index 5de7a96..7ff6fba 100644 (file)
@@ -79,8 +79,9 @@ simplicity, efficiency, portability, and low embedding cost.
 cp %{SOURCE1001} .
 
 %build
+export LDFLAGS+=" -Wl,-E -ldl -lreadline -lhistory -lncurses"
 sed -i 's:LUA_ROOT2 "LIBDIR/lua/%{major_version}/":LUA_ROOT2 \"%{_lib}/lua/%{major_version}/":' src/luaconf.h
-make %{?_smp_mflags} -C src CC="%{__cc}" MYCFLAGS="%{optflags} -fPIC -DLUA_USE_LINUX" MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" V=%{major_version} all
+make %{?_smp_mflags} -C src CC="%{__cc}" MYCFLAGS="%{optflags} -fPIC -DLUA_USE_LINUX" MYLIBS="$LDFLAGS" V=%{major_version} all
 
 %install
 make install INSTALL_TOP="%{buildroot}%{_prefix}" INSTALL_LIB="%{buildroot}%{_libdir}" INSTALL_CMOD=%{buildroot}%{_libdir}/lua/%{major_version} INSTALL_MAN="%{buildroot}%{_mandir}/man1"