From 1e19c83dde9c35f4e19d9f5f769086975d3ad0f8 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Apr 18 2018 21:15:22 +0000 Subject: Use %{?__global_ldflags} macro instead --- diff --git a/lua-socket.spec b/lua-socket.spec index 8359a44..9ee5f25 100644 --- a/lua-socket.spec +++ b/lua-socket.spec @@ -86,7 +86,7 @@ cp -a . %{lua51dir} %build make %{?_smp_mflags} LUAV=%{luaver} OPTFLAGS="%{optflags} -fPIC" \ - LDFLAGS="%{build_ldflags} -shared -o " linux + LDFLAGS="%{?__global_ldflags} -shared -o " linux /usr/bin/iconv -f ISO8859-1 -t UTF8 LICENSE >LICENSE.UTF8 mv -f LICENSE.UTF8 LICENSE @@ -95,7 +95,7 @@ pushd %{lua51dir} make %{?_smp_mflags} LUAV=%{luacompatver} \ LUAINC_linux=%{_includedir}/lua-%{luacompatver} \ OPTFLAGS="%{optflags} -fPIC" \ - LDFLAGS="%{build_ldflags} -O -shared -fpic -o " linux + LDFLAGS="%{?__global_ldflags} -O -shared -fpic -o " linux /usr/bin/iconv -f ISO8859-1 -t UTF8 LICENSE >LICENSE.UTF8 mv -f LICENSE.UTF8 LICENSE popd