summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-09-08 21:17:32 +0200
committerJim Meyering <meyering@redhat.com>2012-09-10 16:55:25 +0200
commit4fdd1cc597209b9e85ed66fdb594abca6f148155 (patch)
tree4edf99bda86d82b27f935b90dc386f6f19b0d9ec /src
parentd9bc0d0d22b159f1a0b2cb11d4efd759921da238 (diff)
downloadcoreutils-4fdd1cc597209b9e85ed66fdb594abca6f148155.tar.xz
maint: allow per-directory CFLAGS settings with non-recursive make
* src/local.mk (AM_CFLAGS): Don't use $(WARN_CFLAGS) here. * cfg.mk (src_CFLAGS, lib_CFLAGS, gnulib-tests_CFLAGS): Define here instead. (AM_CFLAGS): Augment using the above. * configure.ac: Note that the configure-time option, --enable-gcc-warnings now functions only when using GNU make. Well, currently it does still work in gnulib-tests, but that should soon be fixed. Improved-by: Stefano Lattarini
Diffstat (limited to 'src')
-rw-r--r--src/local.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/local.mk b/src/local.mk
index 4cfbe5526..78e7743fb 100644
--- a/src/local.mk
+++ b/src/local.mk
@@ -16,7 +16,8 @@
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
-AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
+# FIXME: once lib/ and gnulib-tests/ are also converted, hoist to Makefile.am
+AM_CFLAGS = $(WERROR_CFLAGS)
# The list of all programs (separated in different variables to express
# the how and when they should be installed) is defined in this makefile