Search
lxdream.org :: lxdream :: r791:fc609d426806
lxdream 0.9.1
released Jun 29
Download Now
changeset791:fc609d426806
parent790:a0c7d28bbb0c
child792:1183b763592e
authornkeynes
dateWed Jul 30 02:17:18 2008 +0000 (12 years ago)
Add -fno-strict-aliasing when compiling with gcc (otherwise code is slightly buggy)
configure
configure.in
1.1 --- a/configure Wed Jul 30 00:11:32 2008 +0000
1.2 +++ b/configure Wed Jul 30 02:17:18 2008 +0000
1.3 @@ -6621,6 +6621,11 @@
1.4
1.5
1.6
1.7 +if test "x$GCC" = "xyes"; then
1.8 + CFLAGS="$CFLAGS -fno-strict-aliasing"
1.9 +fi
1.10 +
1.11 +
1.12 lxdream_save_cppflags="$CPPFLAGS"
1.13 CPPFLAGS="$CPPFLAGS -x objective-c"
1.14 cat >conftest.$ac_ext <<_ACEOF
2.1 --- a/configure.in Wed Jul 30 00:11:32 2008 +0000
2.2 +++ b/configure.in Wed Jul 30 02:17:18 2008 +0000
2.3 @@ -47,6 +47,12 @@
2.4 AC_ARG_WITH( pulse,
2.5 AS_HELP_STRING( [--with-pulse], [Build with support for the PulseAudio audio system]) )
2.6
2.7 +dnl ------------
2.8 +
2.9 +if test "x$GCC" = "xyes"; then
2.10 + CFLAGS="$CFLAGS -fno-strict-aliasing"
2.11 +fi
2.12 +
2.13 dnl ------------ Check if we're building on Darwin --------------
2.14
2.15 dnl For starters, do we have a working objective-c compiler?
.