Skip to content

Commit

Permalink
Fix typo in configure (wiped CFLAGS)
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17554 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 5, 2013
1 parent 98c9f2b commit 72bfd0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ else
CFLAGS_BEFORE="$CFLAGS"
CFLAGS="-O3 -march=native"
AC_MSG_CHECKING([looking for -march=native])
AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]);CFLAGS="-O3"])
fi
fi

Expand All @@ -131,7 +131,7 @@ if echo $CFLAGS | grep -q -- -fPIC; then
else
CFLAGS_BEFORE="$CFLAGS"
CFLAGS="$CFLAGS -fPIC -Werror"
AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([adding -fPIC]); CFLAGS="$CFLAGSBEFORE -fPIC"], [AC_MSG_RESULT([don't need -fPIC]); CFLAGS="$CFLAGSBEFORE"])
AC_TRY_LINK([void abc() {}], [abc();], [AC_MSG_RESULT([adding -fPIC]); CFLAGS="$CFLAGS_BEFORE -fPIC"], [AC_MSG_RESULT([don't need -fPIC]); CFLAGS="$CFLAGS_BEFORE"])
fi

fi
Expand Down

0 comments on commit 72bfd0d

Please sign in to comment.