From 6ac6734752703631eab6fc5e0f25fe51cdc1f9f1 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 10 Apr 2020 10:58:20 +0200 Subject: build: Use WARN_CFLAGS variable --- configure.ac | 2 ++ src/Makefile.am | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 9575d9e..24be4f0 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,8 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_CONFIG_HEADERS(config.h) AC_CONFIG_MACRO_DIR([m4]) +MATE_COMPILE_WARNINGS + CAJA_REQUIRED=1.17.1 AC_PROG_CC diff --git a/src/Makefile.am b/src/Makefile.am index 0d4e5db..5421819 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,5 @@ +NULL = + caja_extensiondir=$(CAJA_EXTENSION_DIR) caja_extension_LTLIBRARIES = libcaja-python.la @@ -17,13 +19,13 @@ libcaja_python_la_CPPFLAGS = \ -DPYTHON_VERSION=\"$(PYTHON_VERSION)\" \ -DPYTHON_ABIFLAGS=\"$(PYTHON_ABIFLAGS)\" \ -DPY_LIB_LOC="\"$(PYTHON_LIB_LOC)\"" \ - $(CAJA_PYTHON_CFLAGS) \ - $(AM_CPPFLAGS) + $(NULL) libcaja_python_la_CFLAGS = \ - $(PYTHON_CFLAGS) + $(PYTHON_CFLAGS) \ $(CAJA_PYTHON_CFLAGS) \ - $(AM_CFLAGS) + $(WARN_CFLAGS) \ + $(NULL) libcaja_python_la_LDFLAGS = -module -avoid-version -Wl,-z,defs libcaja_python_la_LIBADD = $(PYTHON_LIBS) $(CAJA_PYTHON_LIBS) -- cgit v1.2.1