Skip to content

Commit 06156d3

Browse files
committed
rpm: hotfix - disable automatic setting of hardening flags
New Fedora distributions add additional hardening flags to compiler and linker etc. by default in rpmbuild. However, this change breaks configure checks and the build process fails with: ``` configure: error: in `/builddir/build/BUILD/ipfixprobe-4.7.1': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details ``` The cause is probably: `LDFLAGS=-specs=/usr/lib/rpm/redhat/redhat-hardened-ld` when this particular flag is removed, the build (and configure works). This patch is considered a temporary solution to build new package. The situation should be investigated in more details.
1 parent 5ce7c98 commit 06156d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ipfixprobe.spec.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
%global is_el7 no
4242
%endif
4343

44+
# Hotfix to allow RPM build on fedora36+
45+
# There is a problem in configure autodetection when
46+
# LDFLAGS=-specs=/usr/lib/rpm/redhat/redhat-hardened-ld
47+
%undefine _auto_set_build_flags
48+
4449
Name: ipfixprobe
4550
Version: @PACKAGE_VERSION@
4651
Release: @RELEASE@

0 commit comments

Comments
 (0)