Permalink
Browse files

Merge pull request #9 from jdhore/master

Here's a patch to actually use CFLAGS and LDFLAGS from envvars
  • Loading branch information...
2 parents 6a38fb7 + 4418146 commit 9926c63c704a0afc2b0ea7f6313393b764806038 @ggreer committed Jan 11, 2012
Showing with 2 additions and 2 deletions.
  1. +0 −2 Makefile.am
  2. +2 −0 configure.ac
View
@@ -1,8 +1,6 @@
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
-CFLAGS = -Wall -Wextra -std=c89 -D_GNU_SOURCE -O2 -g
-
bin_PROGRAMS = ag
ag_SOURCES = src/ignore.c src/log.c src/options.c src/print.c src/util.c src/main.c
ag_LDADD = -lpcre
View
@@ -10,6 +10,8 @@ AC_CHECK_LIB([pcre], [pcre_exec])
AC_CHECK_DECL([PCRE_CONFIG_JIT], [AC_DEFINE([USE_PRCE_JIT], [], [Use PCRE JIT])], [], [#include <pcre.h>])
AC_DEFINE([AG_VERSION], ["0.1.1"], [Ag Version])
+CFLAGS="$CFLAGS -Wall -Wextra -std=c89 -D_GNU_SOURCE -g"
+LDFLAGS="$LDFLAGS"
AC_CONFIG_FILES([Makefile])
AC_CONFIG_HEADERS([src/config.h])

0 comments on commit 9926c63

Please sign in to comment.