From 6254eb37da7c777253dec41fda03880938f92fdc Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Date: Mar 11 2019 09:41:09 +0000 Subject: Use standard Fedora linker flags - Resolves #1548714 Signed-off-by: Rafael dos Santos --- diff --git a/lpeg-1.0.1-inject-ldflags.patch b/lpeg-1.0.1-inject-ldflags.patch new file mode 100644 index 0000000..c3d0cf0 --- /dev/null +++ b/lpeg-1.0.1-inject-ldflags.patch @@ -0,0 +1,10 @@ +--- lpeg-1.0.1/makefile 2017-01-14 19:57:16.000000000 +0100 ++++ lpeg-1.0.1/makefile 2018-04-14 09:50:46.688116612 +0200 +@@ -36,7 +36,7 @@ + make lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup" + + lpeg.so: $(FILES) +- env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so ++ env $(CC) $(DLLFLAGS) $(LDFLAGS) $(FILES) -o lpeg.so + + $(FILES): makefile diff --git a/lua-lpeg.spec b/lua-lpeg.spec index deb30a1..86bcff2 100644 --- a/lua-lpeg.spec +++ b/lua-lpeg.spec @@ -5,7 +5,7 @@ Name: lua-lpeg Version: 1.0.1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Parsing Expression Grammars for Lua License: MIT @@ -13,6 +13,7 @@ URL: http://www.inf.puc-rio.br/~roberto/lpeg/ Source0: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz %if 0%{?el5} %endif +Patch0: lpeg-1.0.1-inject-ldflags.patch BuildRequires: gcc BuildRequires: lua-devel @@ -30,7 +31,7 @@ Grammars (PEGs). %autosetup -n lpeg-%{version} %build -make %{?_smp_mflags} COPT="%{optflags}" +make %{?_smp_mflags} COPT="%{optflags}" LDFLAGS="%{build_ldflags}" %install %{__rm} -rf %{buildroot} @@ -51,6 +52,9 @@ lua test.lua %changelog +* Mon Mar 11 2019 Rafael dos Santos - 1.0.1-6 +- Use standard Fedora linker flags (bug #1548714) + * Fri Feb 01 2019 Fedora Release Engineering - 1.0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild