[libav-bugs] [Bug 606] New: configure's check_ld() must consider .so files besides -l flags

bugzilla at libav.org bugzilla at libav.org
Tue Dec 17 17:00:29 CET 2013


https://bugzilla.libav.org/show_bug.cgi?id=606

           Summary: configure's check_ld() must consider .so files besides
                    -l flags
           Product: Libav
           Version: 9
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: mva at FreeBSD.org


opencv 2.4.7 reports full paths to its shared libraries via pkg-config, which
causes `pkg-config --libs opencv` to output something like

'/usr/local/libopencv_core.so ... /usr/local/lib/libopencv_flann.so ...'


The check_ld() function in configure is not intelligent enough to consider
those as lib arguments and omits them completely, causing the configure script
to fail.
(as to be seen on
http://beefy1.isc.freebsd.org/bulk/10i386-quarterly/2013-12-16_15h18m40s/logs/libav-9.10_2.log)

check_ld() should be changed to add *.so as OR'd filter.

check_ld(){
    log check_ld "$@"
    flags=$(filter_out '-l*|*.so' "$@")   # NEW: |*.so
    libs=$(filter '-l*|*.so' "$@")        # NEW: |*.so
    check_cc $($cflags_filter $flags) || return
    flags=$($ldflags_filter $flags)
    libs=$($ldflags_filter $libs)
    check_cmd $ld $LDFLAGS $flags $(ld_o $TMPE) $TMPO $libs $extralibs
}

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list