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

 
 

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

Submitter:  Mike Frysinger <vapier>
Submitted:  Mon 28 Jan 2008 02:02:09 PM UTC
   
 
Category:  Build/Install Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  trunk Operating System:  None
Reproducibility:  None Fixed Release:  None
Planned Release:  1.14 Regression:  None
Work Required:  0 - Hours Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 30 Aug 2009 06:46:09 AM UTC, 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>
Tue 14 Apr 2009 04:56:20 PM UTC, comment #2: 

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

cu andreas

Andreas Metzler <ametzler>
Tue 29 Jan 2008 04:32:19 AM UTC, 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>
Mon 28 Jan 2008 02:02:09 PM UTC, 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:
-LIBS="$LIBS $LIB[]NAME"
+LIBS="$LIB[]NAME $LIBS"

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 Files:
   
   
Comment:
   

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 ametzler (Posted a comment)
  • -email is unavailable- added by micahcowan (Posted a comment)
  • -email is unavailable- added by vapier (Submitted the item)
  •  

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-08-30 micahcowan Planned Release1.12 1.14
    2008-11-04 micahcowan Priority9 - Immediate 5 - Normal
    2008-11-04 micahcowan Priority5 - Normal 9 - Immediate
    2008-04-23 micahcowan Work RequiredNone 0 - Hours
    2008-01-29 micahcowan Planned ReleaseNone 1.12

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code