spec: Pass -pie separately to RPM_LD_FLAGS

Clang does not support setting it from the -specs file
This commit is contained in:
Timm Bäder 2020-03-30 16:27:48 +02:00
parent 3623ff0401
commit 1b8a7090fa
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Summary: Utility to create fonts.scale files for truetype fonts
Name: ttmkfdir
Version: 3.0.9
Release: 59%{?dist}
Release: 60%{?dist}
# Only licensing attribution is in README, no version.
License: LGPLv2+
# This is a Red Hat maintained package which is specific to
@ -37,7 +37,7 @@ by the font server.
%autosetup -p1
%build
%{make_build} OPTFLAGS="$RPM_OPT_FLAGS"
%{make_build} OPTFLAGS="$RPM_OPT_FLAGS" RPM_LD_FLAGS="$RPM_LD_FLAGS -pie"
%install
%{make_install} PREFIX="%{_prefix}"
@ -50,6 +50,9 @@ cp -p %{SOURCE10} %{buildroot}%{_mandir}/man1/
%{_mandir}/man1/ttmkfdir.1*
%changelog
* Mon Mar 30 2020 Timm Baeder <tbaeder@redhat.com> - 3.0.9-60
- Pass -pie separately to %%{make_build}
* Mon Mar 16 2020 Tom Stellard <tstellar@redhat.com> - 3.0.9-59
- Use make_build and make_install macros
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make