From 5d3be8914054ab99c9c1a5efe76b00998e1e9fde Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Mon, 7 Oct 2013 22:04:17 -0300 Subject: [PATCH] Do not override CFLAGS and LIBS. Use specific extra CFLAGS and LDFLAGS for the program. --- Makefile.am | 2 ++ configure.ac | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index b5b7499..fc7885d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,2 +1,4 @@ bin_PROGRAMS = f2fchat f2fchat_SOURCES = f2fchat.c friend.c +f2fchat_CFLAGS = $(GLIB_CFLAGS) +f2fchat_LDFLAGS = $(GLIB_LIBS) diff --git a/configure.ac b/configure.ac index c5731f7..07d7df4 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,4 @@ AC_PROG_CC AM_PROG_CC_C_O AC_PROG_INSTALL PKG_CHECK_MODULES(GLIB, glib-2.0, , AC_MSG_ERROR(Could not find GLIB)) -LIBS="$GLIB_LIBS" -CFLAGS="$GLIB_CFLAGS" AC_OUTPUT(Makefile) -- 2.20.1