Skip to content
Browse files

Build with user-specified CFLAGS and LDFLAGS

Also, enforce some of our own that we need to.
  • Loading branch information...
1 parent 6a38fb7 commit 44181463797348858cd784fe7ec6ba9595974f87 @jdhore jdhore committed
Showing with 2 additions and 2 deletions.
  1. +0 −2 Makefile.am
  2. +2 −0 configure.ac
View
2 Makefile.am
@@ -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
2 configure.ac
@@ -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 4418146

Please sign in to comment.
Something went wrong with that request. Please try again.