public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] fix install dependencies for target libraries
@ 2012-12-20 18:23 Matthias Klose
  2012-12-20 19:11 ` Ian Lance Taylor
  2012-12-20 22:29 ` Tobias Burnus
  0 siblings, 2 replies; 4+ messages in thread
From: Matthias Klose @ 2012-12-20 18:23 UTC (permalink / raw)
  To: GCC Patches; +Cc: libstdc++, gfortran, GCJ-patches

[-- Attachment #1: Type: text/plain, Size: 533 bytes --]

This was seen with the libgo installation [1], but from my point of view can
happen when the install target is called with -j >1, libtool seems to fall back
to the system libraries if the library in the install location is not available
(which is always the case if you install into an empty dir set with DESTDIR).
Currently it just works for a non-parallel install because the dependencies in
Makefile.def are created in the right order.

Ok for the trunk?

  Matthias

[1] http://gcc.gnu.org/ml/gcc-patches/2012-12/msg01192.html



[-- Attachment #2: install.diff --]
[-- Type: text/x-diff, Size: 1495 bytes --]

2012-12-20  Matthias Klose  <doko@ubuntu.com>

	* Makefile.def (install-target-libgfortran): Depend on
	install-target-libquadmath, install-target-libgcc.
	(install-target-libsanitizer): Depend on install-target-libgcc.
	(install-target-libjava): Depend on install-target-libgcc.
	(install-target-libitm): Depend on install-target-libgcc.
	(install-target-libobjc): Depend on install-target-libgcc.
	(install-target-libstdc++-v3): Depend on install-target-libgcc.
	* Makefile.in: Regenerate.

Index: Makefile.def
===================================================================
--- Makefile.def	(Revision 194635)
+++ Makefile.def	(Arbeitskopie)
@@ -515,6 +515,13 @@
 dependencies = { module=all-target-libstdc++-v3; on=configure-target-libgomp; };
 
 dependencies = { module=install-target-libgo; on=install-target-libatomic; };
+dependencies = { module=install-target-libgfortran; on=install-target-libquadmath; };
+dependencies = { module=install-target-libgfortran; on=install-target-libgcc; };
+dependencies = { module=install-target-libsanitizer; on=install-target-libgcc; };
+dependencies = { module=install-target-libjava; on=install-target-libgcc; };
+dependencies = { module=install-target-libitm; on=install-target-libgcc; };
+dependencies = { module=install-target-libobjc; on=install-target-libgcc; };
+dependencies = { module=install-target-libstdc++-v3; on=install-target-libgcc; };
 
 // Target modules in the 'src' repository.
 lang_env_dependencies = { module=libtermcap; };

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] fix install dependencies for target libraries
  2012-12-20 18:23 [patch] fix install dependencies for target libraries Matthias Klose
@ 2012-12-20 19:11 ` Ian Lance Taylor
  2012-12-20 19:21   ` Matthias Klose
  2012-12-20 22:29 ` Tobias Burnus
  1 sibling, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2012-12-20 19:11 UTC (permalink / raw)
  To: Matthias Klose; +Cc: GCC Patches, libstdc++, gfortran, GCJ-patches

On Thu, Dec 20, 2012 at 10:22 AM, Matthias Klose <doko@ubuntu.com> wrote:
> This was seen with the libgo installation [1], but from my point of view can
> happen when the install target is called with -j >1, libtool seems to fall back
> to the system libraries if the library in the install location is not available
> (which is always the case if you install into an empty dir set with DESTDIR).
> Currently it just works for a non-parallel install because the dependencies in
> Makefile.def are created in the right order.
>
> Ok for the trunk?

This is OK with a ChangeLog entry.

Thanks.

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] fix install dependencies for target libraries
  2012-12-20 19:11 ` Ian Lance Taylor
@ 2012-12-20 19:21   ` Matthias Klose
  0 siblings, 0 replies; 4+ messages in thread
From: Matthias Klose @ 2012-12-20 19:21 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: GCC Patches, libstdc++, gfortran, GCJ-patches

Am 20.12.2012 20:11, schrieb Ian Lance Taylor:
> On Thu, Dec 20, 2012 at 10:22 AM, Matthias Klose <doko@ubuntu.com> wrote:
>> This was seen with the libgo installation [1], but from my point of view can
>> happen when the install target is called with -j >1, libtool seems to fall back
>> to the system libraries if the library in the install location is not available
>> (which is always the case if you install into an empty dir set with DESTDIR).
>> Currently it just works for a non-parallel install because the dependencies in
>> Makefile.def are created in the right order.
>>
>> Ok for the trunk?
> 
> This is OK with a ChangeLog entry.

committed, with the ChangeLog entry from the original mail.

  Matthias

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] fix install dependencies for target libraries
  2012-12-20 18:23 [patch] fix install dependencies for target libraries Matthias Klose
  2012-12-20 19:11 ` Ian Lance Taylor
@ 2012-12-20 22:29 ` Tobias Burnus
  1 sibling, 0 replies; 4+ messages in thread
From: Tobias Burnus @ 2012-12-20 22:29 UTC (permalink / raw)
  To: Matthias Klose; +Cc: GCC Patches, libstdc++, gfortran, GCJ-patches

Am 20.12.2012 19:22, schrieb Matthias Klose:
> This was seen with the libgo installation [1], but from my point of view can
> happen when the install target is called with -j >1, libtool seems to fall back
> to the system libraries if the library in the install location is not available
> (which is always the case if you install into an empty dir set with DESTDIR).
> Currently it just works for a non-parallel install because the dependencies in
> Makefile.def are created in the right order.
>
> Ok for the trunk?

For the Fortran change: Can you test with --disable-libquadmath 
--disable-libquadmath-support? Will that work by silently ignoring the 
libquadmath dependence or will it break?

> +dependencies = { module=install-target-libgfortran; on=install-target-libquadmath; };

Tobias

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-20 22:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-20 18:23 [patch] fix install dependencies for target libraries Matthias Klose
2012-12-20 19:11 ` Ian Lance Taylor
2012-12-20 19:21   ` Matthias Klose
2012-12-20 22:29 ` Tobias Burnus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).