From: Yury Usishchev Date: Fri, 30 Jan 2015 12:39:25 +0000 (+0300) Subject: Use LDFLAGS to pass linker options X-Git-Tag: accepted/tizen/3.0.m2/base/20170104.082018^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25c38c5d6cf919f6e0c37413955c20dbea24d37f;p=platform%2Fupstream%2Flua.git Use LDFLAGS to pass linker options Change-Id: Idea15fc0b3d0d124c6d1a24d96d3825c01040fb9 Signed-off-by: Yury Usishchev --- diff --git a/packaging/lua.spec b/packaging/lua.spec index 5de7a96..7ff6fba 100644 --- a/packaging/lua.spec +++ b/packaging/lua.spec @@ -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"