public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/64738] New: go, gofmt and cgo binaries linked statically
@ 2015-01-22 23:42 jakub at gcc dot gnu.org
  2015-01-22 23:44 ` [Bug go/64738] " ian at airs dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-22 23:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64738

            Bug ID: 64738
           Summary: go, gofmt and cgo binaries linked statically
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: jakub at gcc dot gnu.org
                CC: cmang at google dot com, ian at gcc dot gnu.org

Is there any reason why these 3 tools are not linked against shared libgo.so.7
if it has been built and is being installed?


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

* [Bug go/64738] go, gofmt and cgo binaries linked statically
  2015-01-22 23:42 [Bug go/64738] New: go, gofmt and cgo binaries linked statically jakub at gcc dot gnu.org
@ 2015-01-22 23:44 ` ian at airs dot com
  2015-01-22 23:46 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ian at airs dot com @ 2015-01-22 23:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64738

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
My concern was that for people building their own GCC, the tools won't work
without setting LD_LIBRARY_PATH.

I think I will make it a configure option.


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

* [Bug go/64738] go, gofmt and cgo binaries linked statically
  2015-01-22 23:42 [Bug go/64738] New: go, gofmt and cgo binaries linked statically jakub at gcc dot gnu.org
  2015-01-22 23:44 ` [Bug go/64738] " ian at airs dot com
@ 2015-01-22 23:46 ` pinskia at gcc dot gnu.org
  2015-01-22 23:51 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-01-22 23:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64738

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think they should be dynamic linked by default.


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

* [Bug go/64738] go, gofmt and cgo binaries linked statically
  2015-01-22 23:42 [Bug go/64738] New: go, gofmt and cgo binaries linked statically jakub at gcc dot gnu.org
  2015-01-22 23:44 ` [Bug go/64738] " ian at airs dot com
  2015-01-22 23:46 ` pinskia at gcc dot gnu.org
@ 2015-01-22 23:51 ` jakub at gcc dot gnu.org
  2015-01-23  9:25 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-22 23:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64738

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I see in gotools/Makefile.am:
AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs -static-libgo
but why has the -static-libgo flag been added is unclear (and, IMHO very much
undesirable).


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

* [Bug go/64738] go, gofmt and cgo binaries linked statically
  2015-01-22 23:42 [Bug go/64738] New: go, gofmt and cgo binaries linked statically jakub at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-01-22 23:51 ` jakub at gcc dot gnu.org
@ 2015-01-23  9:25 ` rguenth at gcc dot gnu.org
  2015-01-23 23:12 ` ian at gcc dot gnu.org
  2015-01-23 23:14 ` ian at airs dot com
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-23  9:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64738

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-23
     Ever confirmed|0                           |1

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. -static-libgo indeed is undesirable.


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

* [Bug go/64738] go, gofmt and cgo binaries linked statically
  2015-01-22 23:42 [Bug go/64738] New: go, gofmt and cgo binaries linked statically jakub at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-01-23  9:25 ` rguenth at gcc dot gnu.org
@ 2015-01-23 23:12 ` ian at gcc dot gnu.org
  2015-01-23 23:14 ` ian at airs dot com
  5 siblings, 0 replies; 7+ messages in thread
From: ian at gcc dot gnu.org @ 2015-01-23 23:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64738

--- Comment #5 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> ---
Author: ian
Date: Fri Jan 23 23:11:59 2015
New Revision: 220066

URL: https://gcc.gnu.org/viewcvs?rev=220066&root=gcc&view=rev
Log:
    PR go/64738
    * Makefile.am (AM_LDFLAGS): Remove -static-libgo.
    * Makefile.in: Rebuild.

Modified:
    trunk/gotools/ChangeLog
    trunk/gotools/Makefile.am
    trunk/gotools/Makefile.in


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

* [Bug go/64738] go, gofmt and cgo binaries linked statically
  2015-01-22 23:42 [Bug go/64738] New: go, gofmt and cgo binaries linked statically jakub at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2015-01-23 23:12 ` ian at gcc dot gnu.org
@ 2015-01-23 23:14 ` ian at airs dot com
  5 siblings, 0 replies; 7+ messages in thread
From: ian at airs dot com @ 2015-01-23 23:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64738

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Ian Lance Taylor <ian at airs dot com> ---
Fixed.


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

end of thread, other threads:[~2015-01-23 23:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 23:42 [Bug go/64738] New: go, gofmt and cgo binaries linked statically jakub at gcc dot gnu.org
2015-01-22 23:44 ` [Bug go/64738] " ian at airs dot com
2015-01-22 23:46 ` pinskia at gcc dot gnu.org
2015-01-22 23:51 ` jakub at gcc dot gnu.org
2015-01-23  9:25 ` rguenth at gcc dot gnu.org
2015-01-23 23:12 ` ian at gcc dot gnu.org
2015-01-23 23:14 ` ian at airs dot com

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