specfile: explicitly added '-g' option into CFLAGS & CXXFLAGS

To correctly build .debug_info for i386 architecture.
This commit is contained in:
David Kaspar [Dee'Kej] 2017-02-17 15:40:39 +01:00
parent 56c4d97e6e
commit a18f99cf72

View File

@ -6,7 +6,7 @@
Summary: A GNU arbitrary precision library Summary: A GNU arbitrary precision library
Name: gmp Name: gmp
Version: 6.1.2 Version: 6.1.2
Release: 2%{?dist} Release: 3%{?dist}
Epoch: 1 Epoch: 1
URL: http://gmplib.org/ URL: http://gmplib.org/
Source0: ftp://ftp.gmplib.org/pub/gmp-%{version}/gmp-%{version}.tar.bz2 Source0: ftp://ftp.gmplib.org/pub/gmp-%{version}/gmp-%{version}.tar.bz2
@ -108,7 +108,7 @@ sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|-lstdc++ -lm|-lstdc++|' \ -e 's|-lstdc++ -lm|-lstdc++|' \
-i libtool -i libtool
export LD_LIBRARY_PATH=`pwd`/.libs export LD_LIBRARY_PATH=`pwd`/.libs
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} make CFLAGS="$RPM_OPT_FLAGS -g" CXXFLAGS="$RPM_OPT_FLAGS -g" %{?_smp_mflags}
cd .. cd ..
#%ifarch %{ix86} #%ifarch %{ix86}
#mkdir build-sse2 #mkdir build-sse2
@ -250,6 +250,9 @@ exit 0
%{_libdir}/libgmpxx.a %{_libdir}/libgmpxx.a
%changelog %changelog
* Fri Feb 17 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 1:6.1.2-3
- Explicitly added '-g' option into CFLAGS & CXXFLAGS to correctly build .debug_info for i386
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.1.2-2 * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild