Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-868

Traffic Server fails to build with --Wl,--as-needed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.1.0, 3.0.1
    • Build
    • None

    Description

      As we discuessed before, ATS fails to build from source if --as-needed is passed to the linking flags. This issue was originally reported by Ubuntu folks in Debian and hereby forwarded by me. For reference, the issue in Debian has been reported as #632546.

      Note it is not enough to add this linking flag to LDFLAGS as those are honored too late. --as-needed only works if passed before every other -llibrary argument.

      The reporter of the bug supplied a patch which fixes this issue for the release tarball in as_needed.patch (credited to Ilya Barygin <barygin@gmail.com>) which, I can confirm, fixes the issue for the release tarball. I haven't tried for the SVN trunk which has not (yet) compiled the .in files from autoconf.

      Attachments

        Activity

          People

            i.galic Igor Galić
            at Arno Toell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: