[wget-notify] [bug #22144] lib-link.m4 prevents static linking

Mike Frysinger INVALID.NOREPLY at gnu.org
Mon Jan 28 06:02:11 PST 2008


URL:
  <http://savannah.gnu.org/bugs/?22144>

                 Summary: lib-link.m4 prevents static linking
                 Project: GNU Wget
            Submitted by: vapier
            Submitted on: Monday 01/28/2008 at 14:02
                Category: Build/Install
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: trunk
        Operating System: None
         Reproducibility: None
           Fixed Release: None
         Planned Release: None
              Regression: None
           Work Required: None
          Patch Included: None

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22144>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



More information about the wget-notify mailing list