aboutsummaryrefslogtreecommitdiff
path: root/libatomic/Makefile.am
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2016-01-06 14:51:35 +0000
committerSzabolcs Nagy <nsz@gcc.gnu.org>2016-01-06 14:51:35 +0000
commit7c961392a68dcf032ec75aa38a41b6ec7d8ec477 (patch)
tree444dfe130e7c482dd2feae37033602b82702fc82 /libatomic/Makefile.am
parent0c3e5dd1e6efc0c30d679ac2c57ab12f86c6c5af (diff)
downloadgcc-7c961392a68dcf032ec75aa38a41b6ec7d8ec477.zip
gcc-7c961392a68dcf032ec75aa38a41b6ec7d8ec477.tar.gz
gcc-7c961392a68dcf032ec75aa38a41b6ec7d8ec477.tar.bz2
Fix libatomic multilib parallel build (PR other/67627)
The all-multi target may be built in parallel with the %_.lo targets which generate make dependencies that are parsed during the build of all-multi. This patch forces all-multi to only run after the *_.lo targets are done. libatomic: PR other/67627 * Makefile.am (all-multi): Add dependency. * Makefile.in: Regenerate. From-SVN: r232102
Diffstat (limited to 'libatomic/Makefile.am')
-rw-r--r--libatomic/Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/libatomic/Makefile.am b/libatomic/Makefile.am
index fdc16c0..b351244 100644
--- a/libatomic/Makefile.am
+++ b/libatomic/Makefile.am
@@ -139,3 +139,10 @@ endif
libatomic_convenience_la_SOURCES = $(libatomic_la_SOURCES)
libatomic_convenience_la_LIBADD = $(libatomic_la_LIBADD)
+
+# Override the automake generated all-multi rule to guarantee that all-multi
+# is not run in parallel with the %_.lo rules which generate $(DEPDIR)/*.Ppo
+# makefile fragments to avoid broken *.Ppo getting included into the Makefile
+# when it is reloaded during the build of all-multi.
+all-multi: $(libatomic_la_LIBADD)
+ $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)