From c11b6f04ceb17b5c0762986a7cbbe777c48fdf0f Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Feb 23 2018 15:09:23 +0000 Subject: Use LDFLAGS from redhat-rpm-config --- diff --git a/ustr.spec b/ustr.spec index c9950a7..66a9777 100644 --- a/ustr.spec +++ b/ustr.spec @@ -27,7 +27,7 @@ Name: ustr Version: 1.0.4 -Release: 25%{?dist} +Release: 26%{?dist} Summary: String library, very low memory overhead, simple to import Group: System Environment/Libraries License: MIT or LGPLv2+ or BSD @@ -88,11 +88,13 @@ Requires: %{name}-debug = %{version}-%{release} %patch0 -p1 %build -make %{?_smp_mflags} all-shared CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline" %{policy_cflags} +make %{?_smp_mflags} all-shared CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline" \ + LDFLAGS="$RPM_LD_FLAGS" %{policy_cflags} %check %if %{?chk}%{!?chk:1} -make %{?_smp_mflags} check CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline" %{policy_cflags} +make %{?_smp_mflags} check CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline" + LDFLAGS="$RPM_LD_FLAGS" %{policy_cflags} %endif %install @@ -150,6 +152,9 @@ make $@ %{ustr_make_install} prefix=%{_prefix} \ %changelog +* Fri Feb 23 2018 Florian Weimer - 1.0.4-26 +- Use LDFLAGS from redhat-rpm-config + * Fri Feb 09 2018 Fedora Release Engineering - 1.0.4-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild