mirror of https://github.com/OISF/suricata
configure: move -march=native flag insertion at the end
When libraries add their own -march flags to CFLAGS, let them. But if -march=native should be added (it should by default), add it as the last -march flag to "win". This ensures, that even if a library brings their own minimal -march, it will not downgrade the instruction set for the whole Suricata. This happened with DPDK which, when enabled, downgraded the instruction set to -march=corei7 or -march=haswell. When building packages with --disable-gccmarch-native, the instruction set is auto-upgraded to instruction set requested by libraries. E.g. from RPM builds: `CFLAGS="-march=x86_64" ./configure --enable-dpdk` upgrades instruction set to DPDK's corei7 architecture. Ticket: 8169pull/14999/head
parent
1d06103e08
commit
0cb88d6260
Loading…
Reference in New Issue