Skip to content

Commit cab6391

Browse files
committed
Prepend -march to CFLAGS to fix detection
Fixes NLnetLabs/nsd#372.
1 parent 16b76e5 commit cab6391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if test $x86_64 = "yes"; then
6666
$ac_cv_header_immintrin_h = "yes" ; then
6767
AC_MSG_CHECKING(whether -march=westmere works)
6868
BAKCFLAGS="$CFLAGS"
69-
CFLAGS="$CFLAGS -march=westmere"
69+
CFLAGS="-march=westmere $CFLAGS"
7070
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
7171
AC_INCLUDES_DEFAULT
7272
[
@@ -95,7 +95,7 @@ int main(int argc, char *argv[])
9595
$ac_cv_header_immintrin_h = "yes" ; then
9696
AC_MSG_CHECKING(whether -march=haswell works)
9797
BAKCFLAGS="$CFLAGS"
98-
CFLAGS="$CFLAGS -march=haswell"
98+
CFLAGS="-march=haswell $CFLAGS"
9999
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
100100
AC_INCLUDES_DEFAULT
101101
[

0 commit comments

Comments
 (0)