]> granicus.if.org Git - procps-ng/commitdiff
build-sys: enable "subdir-objects" automake option
authorFilipe Brandenburger <filbranden@google.com>
Fri, 1 May 2015 23:48:21 +0000 (16:48 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Sat, 2 May 2015 06:19:51 +0000 (23:19 -0700)
Otherwise, automake 1.14 will warn that this option will become the
default in an upcoming release, which will cause problems for the
procps-ng build.

Now that the automake rules were merged in the top level Makefile.am,
it is possible to enable "subdir-objects" without breaking the build or
the dist.

Tested that it builds and both `make check` and `make distcheck` work.

Tested that `make install` works and produces the same tree before and
after this change. Confirmed that binaries are also placed in the same
locations in the build tree.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Makefile.am
configure.ac

index 0d6f0fd29a489424799702342571cf59604f34d9..3d0a09feeffc2909520234aa3fee76b12617d3cf 100644 (file)
@@ -1,5 +1,3 @@
-#AUTOMAKE_OPTIONS = subdir-objects
-
 AM_CPPFLAGS = \
        -include $(top_builddir)/config.h \
        -I$(top_srcdir) \
index 2f804bba73c7b4563d8ffa666b4aba5c4c70c61d..4b647415f0200ea8d0c40e7ab925c99de70049fa 100644 (file)
@@ -6,7 +6,7 @@ AC_CONFIG_MACRO_DIR([m4])
 AC_INIT([procps-ng],
        m4_esyscmd([misc/git-version-gen .tarball-version]),
        [procps@freelists.org],,[http://gitorious.org/procps])
-AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability tar-pax no-dist-gzip dist-xz])
+AM_INIT_AUTOMAKE([foreign 1.11 subdir-objects -Wall -Wno-portability tar-pax no-dist-gzip dist-xz])
 AM_SILENT_RULES([yes])
 AC_CONFIG_SRCDIR([free.c])
 AC_CONFIG_HEADERS([config.h])