Skip to content
Snippets Groups Projects
Commit 853d123e authored by Simon McVittie's avatar Simon McVittie Committed by Vivek Das Mohapatra
Browse files

build: Enable many warnings, fatal if this is identifiably not a tag


This is not currently active, because there are no tags yet, so
we temporarily lose -Werror.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 2435f084
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -17,8 +17,10 @@
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = --std=c99 -Wall -Werror \
AM_CFLAGS = --std=c99 \
$(WARN_CFLAGS) \
$(LIBELF_CFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS)
static_docs = Building Debugging Limitations Quick-Start
# installable items:
......
......@@ -23,6 +23,8 @@ AC_INIT([libcapsule],
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
m4_pattern_forbid([^AX_], [Please install GNU autoconf-archive])
dnl don't kvetch about gnu makefile syntax
dnl and don't require ChangeLog &co if they don't exist
AM_INIT_AUTOMAKE([-Wno-portability foreign])
......@@ -32,6 +34,15 @@ AC_SYS_LARGEFILE
LT_INIT
AX_IS_RELEASE([dash-version])
dnl -Wno-pointer-arith: We do a lot of arithmetic on void *, relying on gcc
dnl making (void * + int) the same as (char * + int)
dnl -Wno-declaration-after-statement: Stylistic choice, this is C99
AX_COMPILER_FLAGS([], [], [], [], [ \
-Wno-pointer-arith \
-Wno-declaration-after-statement \
])
dnl make sure we've got the _right_ libelf (doesn't always ship a .pc)
PKG_CHECK_MODULES([LIBELF], [libelf >= 0.152], [have_libelf=yes], [
AC_MSG_WARN([libelf.pc not found])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment