public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH RFA: PR go/55201: Create libatomic convenience library
@ 2012-12-18 19:30 Ian Lance Taylor
  2012-12-18 21:32 ` Richard Henderson
  0 siblings, 1 reply; 10+ messages in thread
From: Ian Lance Taylor @ 2012-12-18 19:30 UTC (permalink / raw)
  To: Matthias Klose; +Cc: Andreas Schwab, gcc-patches

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

On Tue, Dec 18, 2012 at 9:57 AM, Ian Lance Taylor <iant@google.com> wrote:
>
> This doesn't happen for me, and it's bizarre that libtool would turn a
> link against ../libatomic/libatomic.la into a link against -latomic.
> But in any case the fix is presumably going to be to add a convenience
> library for libatomic, as is done for libffi.  I'll prepare a patch
> for that.

Like so.

OK for mainline?

If this is approved, I will submit the changes to libgo to use it.

Ian


2012-12-18  Ian Lance Taylor  <iant@google.com>

	PR go/55201
	* Makefile.am (noinst_LTLIBRARIES): Define new make variable.
	(libatomic_convenience_la_SOURCES): Likewise.
	(libatomic_convenience_la_LIBADD): Likewise.
	* Makefile.in: Rebuild.
	* testsuite/Makefile.in: Rebuild.

[-- Attachment #2: foo.patch --]
[-- Type: application/octet-stream, Size: 656 bytes --]

Index: Makefile.am
===================================================================
--- Makefile.am	(revision 194590)
+++ Makefile.am	(working copy)
@@ -40,6 +40,7 @@ AM_CCASFLAGS = $(XCFLAGS)
 AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS)
 
 toolexeclib_LTLIBRARIES = libatomic.la
+noinst_LTLIBRARIES = libatomic_convenience.la
 
 if LIBAT_BUILD_VERSIONED_SHLIB
 if LIBAT_BUILD_VERSIONED_SHLIB_GNU
@@ -134,3 +135,6 @@ IFUNC_OPTIONS	     = -mcx16
 libatomic_la_LIBADD += $(addsuffix _16_1_.lo,$(SIZEOBJS))
 endif
 endif
+
+libatomic_convenience_la_SOURCES = $(libatomic_la_SOURCES)
+libatomic_convenience_la_LIBADD = $(libatomic_la_LIBADD)

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

end of thread, other threads:[~2012-12-19 15:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-18 19:30 PATCH RFA: PR go/55201: Create libatomic convenience library Ian Lance Taylor
2012-12-18 21:32 ` Richard Henderson
2012-12-18 22:09   ` Ian Lance Taylor
2012-12-18 22:31     ` Richard Henderson
2012-12-18 22:52       ` Ian Lance Taylor
2012-12-18 23:09         ` Richard Henderson
2012-12-18 23:15         ` Richard Henderson
2012-12-19  0:28           ` Ian Lance Taylor
2012-12-19 15:38             ` Matthias Klose
2012-12-19 15:47               ` Ian Lance Taylor

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).