[Bug binutils/10380] New: cannot build binutils statically

View: New views
9 Messages — Rating Filter:   Alert me  

[Bug binutils/10380] New: cannot build binutils statically

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to build binutils-2.19.1 statically. I tried with
../binutils-2.19.1/configure LDFLAGS="-static" && make but I get:

ldd binutils/ar
linux-vdso.so.1 =>  (0x00007fffaf9ff000)
libz.so.1 => /lib/libz.so.1 (0x00007fe1a223d000)
libc.so.6 => /lib/libc.so.6 (0x00007fe1a1ee2000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe1a2453000)

This procedure works for all other packages I'm trying to compile (gcc, bash,
...) but it seems not to work for binutils. Why? Is there perhaps another way to
accomplish this? I also tried reading ./configure --help, README and
binutils/README but there is no useful information.

--
           Summary: cannot build binutils statically
           Product: binutils
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: booleandomain at gmail dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

Re: [Bug binutils/10380] New: cannot build binutils statically

by Nick Clifton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> I'm trying to build binutils-2.19.1 statically. I tried with
> ../binutils-2.19.1/configure LDFLAGS="-static" && make but I get:

Try adding a second dash.  ie:

   ../binutils-2.19.1/configure LDFLAGS="--static" && make

Cheers
   Nick



_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10380] cannot build binutils statically

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From nickc at redhat dot com  2009-07-10 15:17 -------
Subject: Re:  New: cannot build binutils statically

Hi,

> I'm trying to build binutils-2.19.1 statically. I tried with
> ../binutils-2.19.1/configure LDFLAGS="-static" && make but I get:

Try adding a second dash.  ie:

   ../binutils-2.19.1/configure LDFLAGS="--static" && make

Cheers
   Nick



--


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10380] cannot build binutils statically

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From booleandomain at gmail dot com  2009-07-10 16:01 -------
It seems to work, thanks. But why do I need --static while all other packages
(gmp, mpfr, bash, ...) work with -static? Also, I think there should be a
document either in binutils sources or on the binutils homepage that explains
how to build binutils statically.

--


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10380] cannot build binutils statically

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From schwab at linux-m68k dot org  2009-07-10 18:24 -------
binutils uses libtool, and libtool uses -all-static instead.

--


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10380] cannot build binutils statically

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-07-13 16:16 -------
Works with LDFLAGS="--static".

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


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10380] cannot build binutils statically

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From nickc at redhat dot com  2009-07-14 07:41 -------
Created an attachment (id=4051)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4051&action=view)
Document use of LDFLAGS="--static"


--


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10380] cannot build binutils statically

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From nickc at redhat dot com  2009-07-14 07:42 -------
Hi,

  I take your point about documenting the use of LDFLAGS="--static", so I am
going to apply the uploaded patch to the sources.

Cheers
  Nick


--


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10380] cannot build binutils statically

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-07-14 07:43 -------
Subject: Bug 10380

CVSROOT: /cvs/src
Module name: src
Changes by: nickc@... 2009-07-14 07:43:19

Modified files:
        binutils       : ChangeLog README

Log message:
        PR 10380
        * README: Document use of LDFLAGS="--static".

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=src&r1=1.1495&r2=1.1496
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/binutils/README.diff?cvsroot=src&r1=1.8&r2=1.9



--


http://sourceware.org/bugzilla/show_bug.cgi?id=10380

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils