From deacc94e4ad8b86d781f48200eaf0f748c135e2f Mon Sep 17 00:00:00 2001 From: Leigh Scott Date: Wed, 30 Jan 2019 01:33:44 +0000 Subject: [PATCH] Fix build flags so debuginfo is generated --- mujs.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/mujs.spec b/mujs.spec index 31098ca..4c9e524 100644 --- a/mujs.spec +++ b/mujs.spec @@ -1,8 +1,6 @@ -%global debug_package %{nil} - Name: mujs Version: 1.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An embeddable Javascript interpreter License: AGPLv3+ URL: http://mujs.com/ @@ -29,10 +27,11 @@ This package provides the MuJS static library. chmod a-x -v docs/* %build -make debug %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" +make debug %{?_smp_mflags} CFLAGS="%{optflags} -fPIC" LDFLAGS="%{?__global_ldflags}" %install -make install DESTDIR=%{buildroot} prefix="%{_prefix}" libdir="%{_libdir}" +make install DESTDIR=%{buildroot} prefix="%{_prefix}" libdir="%{_libdir}" \ + CFLAGS="%{optflags} -fPIC" LDFLAGS="%{?__global_ldflags}" %global _docdir_fmt %{name} @@ -49,6 +48,10 @@ make install DESTDIR=%{buildroot} prefix="%{_prefix}" libdir="%{_libdir}" %{_libdir}/lib%{name}.a %changelog +* Wed Jan 30 2019 Leigh Scott - 1.0.4-2 +- Fix build flags so debuginfo is generated +- Compile with fPIC + * Thu Sep 27 2018 Michael J Gruber - 1.0.4-1 * Upstream release