From eb63a6c523fa2209abf1ecf457e1049db8f6cdf2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:32:06 +0100 Subject: [PATCH] added CFLAGS to compile with -fPIC [release 2.0.5-3mamba;Fri Apr 24 2020] --- luajit.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/luajit.spec b/luajit.spec index 0940695..7315f57 100644 --- a/luajit.spec +++ b/luajit.spec @@ -1,8 +1,7 @@ -%define libpath %(echo %{_libdir} | cut -d/ -f 3) Name: luajit Version: 2.0.5 -Release: 2mamba -Summary: a Just-In-Time Compiler for Lua +Release: 3mamba +Summary: A Just-In-Time Compiler for Lua Group: Applications/Development Vendor: openmamba Distribution: openmamba @@ -45,11 +44,19 @@ This package contains libraries and header files for developing applications tha %setup -q -n LuaJIT-%{version} %build -%make amalg PREFIX=/usr DESTDIR=%{buildroot} TARGET_STRIP=: MULTILIB=%{libpath} +%make amalg \ + CFLAGS="%{optflags} -fPIC" \ + PREFIX=%{_prefix} \ + TARGET_STRIP=: \ + MULTILIB=%{_lib} %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall PREFIX=/usr DESTDIR=%{buildroot} MULTILIB=%{libpath} +%makeinstall \ + CFLAGS="%{optflags} -fPIC" \ + PREFIX=%{_prefix} \ + DESTDIR=%{buildroot} \ + MULTILIB=%{_lib} %clean @@ -80,6 +87,9 @@ This package contains libraries and header files for developing applications tha %{_libdir}/pkgconfig/luajit.pc %changelog +* Fri Apr 24 2020 Silvan Calarco 2.0.5-3mamba +- added CFLAGS to compile with -fPIC + * Thu Apr 02 2020 Silvan Calarco 2.0.5-2mamba - enable debug package, libluajit: require luajit, cleanups