Fix build flags so debuginfo is generated

epel8
Leigh Scott 6 years ago
parent 8629e86707
commit deacc94e4a

@ -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 <leigh123linux@googlemail.com> - 1.0.4-2
- Fix build flags so debuginfo is generated
- Compile with fPIC
* Thu Sep 27 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.0.4-1
* Upstream release

Loading…
Cancel
Save