Skip to content

Commit

Permalink
Add -fno-stack-protector as a default flag since it messes with some …
Browse files Browse the repository at this point in the history
…systems

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19502 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 8, 2014
1 parent 245ad85 commit b68af41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configure.in
Expand Up @@ -136,7 +136,12 @@ fi
for flag in -fno-tree-ch -fno-tree-vrp -fno-tree-pre; do
OLD_CFLAGS="$CFLAGS"
CFLAGS="$RUNTIMECFLAGS $flag -Werror"
AC_TRY_LINK([], [int main() {return 0;}], [CFLAGS="$OLD_CFLAGS $flag"],[CFLAGS="$OLD_CFLAGS"])
AC_TRY_LINK([], [return 0;], [CFLAGS="$OLD_CFLAGS $flag"],[CFLAGS="$OLD_CFLAGS"])
done
for flag in -fno-stack-protector; do
OLD_CFLAGS="$CFLAGS"
CFLAGS="$RUNTIMECFLAGS $flag -Werror"
AC_TRY_LINK([], [return 0;], [CFLAGS="$OLD_CFLAGS $flag"],[CFLAGS="$OLD_CFLAGS"])
done

if test "Darwin" != `uname`; then
Expand Down

0 comments on commit b68af41

Please sign in to comment.