workaround a build issue with new ld (binutils >= 2.36)

The new ld doesn't ignore an unrecorgnized -no-pie option.

Related: https://github.com/ibm-s390-linux/s390-tools/pull/106
This commit is contained in:
Dan Horák 2021-07-14 12:21:50 +00:00
parent 0419550a2a
commit c1e8b3a309

View File

@ -66,6 +66,7 @@ find . -name Makefile | xargs sed -i 's/$(INSTALL) -s/$(INSTALL)/g'
%build %build
make \ make \
CFLAGS="%{build_cflags}" CXXFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" \ CFLAGS="%{build_cflags}" CXXFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" \
NO_PIE_LDFLAGS="" \
BINDIR=/usr/sbin \ BINDIR=/usr/sbin \
DISTRELEASE=%{release} \ DISTRELEASE=%{release} \
V=1 V=1