diff options
author | Junfeng <junfeng.dong@intel.com> | 2013-03-20 11:55:11 +0800 |
---|---|---|
committer | Junfeng Dong <junfeng.dong@intel.com> | 2013-03-26 16:13:03 +0800 |
commit | de9f18e0688c057a35daf8659209bb9d96ae08f7 (patch) | |
tree | e3af17d2b338a1784028cd04d9123f8af7564171 | |
parent | 26bcc3ee5f6b46e13cc0fcba0937e5805b68fbeb (diff) | |
download | gps-manager-de9f18e0688c057a35daf8659209bb9d96ae08f7.tar.gz gps-manager-de9f18e0688c057a35daf8659209bb9d96ae08f7.tar.bz2 gps-manager-de9f18e0688c057a35daf8659209bb9d96ae08f7.zip |
Fix build error with new version of Glib2 and automake.
- Check AM_PROG_AR to be compatible with automake 1.12.
- Ignore the warning of depecated declarations caused by new version
Glib2.
Change-Id: Ia664e8ac5fbd3c132317909ef3b35e755596f2e7
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3de779b..4b749c9 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,8 @@ AC_CONFIG_HEADER([config.h]) AC_CONFIG_MACRO_DIR([m4]) ###### Checks for programs. +# Compatible with automake 1.12 +m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) AC_PROG_CC AM_PROG_CC_C_O AC_PROG_INSTALL @@ -23,7 +25,7 @@ PLATFORM_INIT # Add default build options to CFLAGS, LDFLAGS if test "x$GCC" = "xyes"; then - CFLAGS="$CFLAGS -Wall -Werror" + CFLAGS="$CFLAGS -Wall" LDFLAGS="$LDFLAGS -Wl,-z,defs -Wl,--as-needed -Wl,--hash-style=both" fi |