diff --git a/configure b/configure index 6403f94a26fde7739e1a86728e5edbd80c419b73..52e8f9f0c8105061f5e90f31c784582f589a2fa8 100755 --- a/configure +++ b/configure @@ -1827,6 +1827,8 @@ if $cc --version | grep -q Intel; then # 11030: Warning unknown option --as-needed # 10156: ignoring option '-export'; no argument required check_ldflags -wd10156,11030 + # Allow to compile with optimizations + check_ldflags -march=$cpu fi # PIC flags for shared library objects where they are needed