mirror of
https://github.com/fltk/fltk.git
synced 2026-05-24 16:36:37 +08:00
Add -fno-strict-aliasing to compiler options since GCC doesn't understand
that char * and unsigned char * are safe to interchange (STR #1484) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -881,6 +881,16 @@ if test -n "$GCC"; then
|
||||
AC_MSG_RESULT(no))
|
||||
CFLAGS="$OLDCFLAGS"
|
||||
|
||||
# See if GCC supports -fno-strict-aliasing...
|
||||
AC_MSG_CHECKING(if GCC supports -fno-strict-aliasing)
|
||||
OLDCFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||
AC_TRY_COMPILE(,,
|
||||
OPTIM="$OPTIM -fno-strict-aliasing"
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no))
|
||||
CFLAGS="$OLDCFLAGS"
|
||||
|
||||
# See if we are running Solaris; if so, try the -fpermissive option...
|
||||
# This option is required on some versions of Solaris to work around
|
||||
# bugs in the X headers up through Solaris 7.
|
||||
|
||||
Reference in New Issue
Block a user