build: Do not define "default" in m4
The "default" m4 conflicts with one of libtool's internal symbols, one that is used to determine whether the -fPIC argument should be used; this breaks compilation onf 64bit platforms. https://bugzilla.gnome.org/show_bug.cgi?id=653615 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com> Signed-off-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
5496a6464d
commit
38a728b45a
12
configure.ac
12
configure.ac
@ -159,12 +159,12 @@ dnl ================================================================
|
|||||||
dnl ============================================================
|
dnl ============================================================
|
||||||
dnl Enable debugging
|
dnl Enable debugging
|
||||||
dnl ============================================================
|
dnl ============================================================
|
||||||
m4_define([default], [m4_if(cogl_release_status, [git], [yes], [no])])
|
m4_define([debug_default], [m4_if(cogl_release_status, [git], [yes], [no])])
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
[debug],
|
[debug],
|
||||||
[AC_HELP_STRING([--enable-debug=@<:@no/yes@:>@], [Control Cogl debugging level @<:@default=]default[@:>@])],
|
[AC_HELP_STRING([--enable-debug=@<:@no/yes@:>@], [Control Cogl debugging level @<:@default=]debug_default[@:>@])],
|
||||||
[],
|
[],
|
||||||
enable_debug=default
|
enable_debug=debug_default
|
||||||
)
|
)
|
||||||
AS_CASE(
|
AS_CASE(
|
||||||
[$enable_debug],
|
[$enable_debug],
|
||||||
@ -238,12 +238,12 @@ dnl ============================================================
|
|||||||
|
|
||||||
# use strict compiler flags only when building from git; the rules for
|
# use strict compiler flags only when building from git; the rules for
|
||||||
# distcheck will take care of turning this on when making a release
|
# distcheck will take care of turning this on when making a release
|
||||||
m4_define([default], [m4_if(cogl_release_status, [git], [yes], [no])])
|
m4_define([maintainer_default], [m4_if(cogl_release_status, [git], [yes], [no])])
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
[maintainer-flags],
|
[maintainer-flags],
|
||||||
[AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes/error@:>@], [Use strict compiler flags @<:@default=]default[@:>@])],
|
[AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes/error@:>@], [Use strict compiler flags @<:@default=]maintainer_default[@:>@])],
|
||||||
[],
|
[],
|
||||||
enable_maintainer_flags=default
|
enable_maintainer_flags=maintainer_default
|
||||||
)
|
)
|
||||||
|
|
||||||
MAINTAINER_COMPILER_FLAGS="-Wall -Wcast-align -Wuninitialized
|
MAINTAINER_COMPILER_FLAGS="-Wall -Wcast-align -Wuninitialized
|
||||||
|
Loading…
Reference in New Issue
Block a user