| 1 |
Description: Fix FTBFS due to automake warnings treated as errors |
| 2 |
Author: Gilles Filippini <[email protected]> |
| 3 |
Bug-Debian: http://bugs.debian.org/713290 |
| 4 |
Index: libgarmin-0~svn320/configure.ac |
| 5 |
=================================================================== |
| 6 |
--- libgarmin-0~svn320.orig/configure.ac 2013-07-13 17:23:16.000000000 +0000 |
| 7 |
+++ libgarmin-0~svn320/configure.ac 2013-07-13 17:26:47.000000000 +0000 |
| 8 |
@@ -7,6 +7,7 @@ |
| 9 |
AC_CONFIG_HEADER([config.h]) |
| 10 |
AM_INIT_AUTOMAKE([-Wall -Werror foreign]) |
| 11 |
# Checks for programs. |
| 12 |
+AM_PROG_AR |
| 13 |
AC_PROG_CC |
| 14 |
if eval "test x$GCC = xyes"; then |
| 15 |
CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type" |
| 16 |
Index: libgarmin-0~svn320/Makefile.inc |
| 17 |
=================================================================== |
| 18 |
--- libgarmin-0~svn320.orig/Makefile.inc 2013-07-13 17:23:16.000000000 +0000 |
| 19 |
+++ libgarmin-0~svn320/Makefile.inc 2013-07-13 17:28:45.000000000 +0000 |
| 20 |
@@ -1,11 +1,12 @@ |
| 21 |
pkgdocdir=$(pkgdatadir)/doc |
| 22 |
+AM_CFLAGS = |
| 23 |
AM_CPPFLAGS = |
| 24 |
if !TARGET_WIN32CE |
| 25 |
#CFLAGS += -shared |
| 26 |
AM_CPPFLAGS += -fPIC |
| 27 |
endif |
| 28 |
if DEBUG |
| 29 |
-CFLAGS += -g |
| 30 |
+AM_CFLAGS += -g |
| 31 |
AM_CPPFLAGS += -DDEBUG |
| 32 |
endif |
| 33 |
|