bugGNU Wget - Bugs: bug #22144, lib-link.m4 prevents static linking


bug #22144: lib-link.m4 prevents static linking

Submitted by:  Mike Frysinger <vapier>
Submitted on:  Mon Jan 28 14:02:09 2008  
Category: Build/InstallSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: trunkOperating System: None
Reproducibility: NoneFixed Release: None
Planned Release: 1.14Regression: None
Work Required: 0 - HoursPatch Included: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sun Aug 30 06:46:09 2009, comment #3:

Punt this for 1.13. It looks like gnulib has these same lib-*.m4 files... at the very least, we should use theirs in preference to ours; though it looks (at a glance) like the current gnulib ones may still suffer the same issues.

Micah Cowan <micahcowan>
Project Administrator
Tue Apr 14 16:56:20 2009, comment #2:

The LTLIBFOO seems to behave more sane than the LIBFOO variable.

cu andreas

Andreas Metzler <ametzler>
Tue Jan 29 04:32:19 2008, comment #1:

Maybe while I'm at it I can take a closer look at the rest of Wget's custom m4 stuff in general.

Micah Cowan <micahcowan>
Project Administrator
Mon Jan 28 14:02:09 2008, original submission:

because the lib-link macros hardcode the full path of the .so library, this prevents static building of wget

i'm not even sure why this code exists ... seems like it's just a lot of over engineering

instead of storing "$found_so" into the lib variables, it should instead store "-l$name"

when setting up LIBS, it should put LIBS first, not last:

that way the system libraries (like libdl) come after the static libraries that need them

Mike Frysinger <vapier>


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by ametzler (Posted a comment)
  • -unavailable- added by micahcowan (Posted a comment)
  • -unavailable- added by vapier (Submitted the item)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Aug 30 06:46:09 2009micahcowanPlanned Release1.12=>1.14
    Tue Nov 4 09:36:12 2008micahcowanPriority9 - Immediate=>5 - Normal
    Tue Nov 4 01:47:18 2008micahcowanPriority5 - Normal=>9 - Immediate
    Wed Apr 23 06:39:11 2008micahcowanWork RequiredNone=>0 - Hours
    Tue Jan 29 04:32:19 2008micahcowanPlanned ReleaseNone=>1.12

    Back to the top

    Powered by Savane 3.1-cleanup1