bugmake - Bugs: bug #37970, Misleading documentation of...


bug #37970: Misleading documentation of LDFLAGS variable

Submitted by:  None
Submitted on:  Fri 21 Dec 2012 01:14:08 PM UTC  
Severity:  3 - Normal Item Group:  Documentation
Status:  Fixed Privacy:  Public
Assigned to:  Paul D. Smith <psmith> Open/Closed:  Closed
Component Version:  3.82 Operating System:  Any
Fixed Release:  4.0 Triage Status:  Verified

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 06 Apr 2013 02:52:23 PM UTC, comment #1: 

Fixed.  Thank you.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Fri 21 Dec 2012 01:14:08 PM UTC, original submission:  

In the GNU make manual, section 10.3 (Variables Used by Implicit Rules) LDFLAGS is described as "Extra flags to give to compilers when they are supposed to invoke the linker, ‘ld’."

This made me think that I should use LDFLAGS to specify libraries, instead of LDLIBS. Unfortunately, this seems to work with some GNU toolchains, and fail with others (maybe due to a recent binutils change?).

It may be worth mentioning there that LDLIBS should be used to specific static libraries.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-06 psmith StatusNone => Fixed
        Assigned toNone => psmith
        Open/ClosedOpen => Closed
        Operating SystemNone => Any
        Fixed ReleaseNone => 4.0
        Triage StatusNone => Verified

    Back to the top

    Powered by Savane 3.5