Changes between Version 1 and Version 2 of Ticket #51516, comment 134


Ignore:
Timestamp:
Jun 3, 2024, 4:53:22 PM (5 weeks ago)
Author:
RJVB (René Bertin)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51516, comment 134

    v1 v2  
    3939    }
    4040    post-destroot {
    41         foreach p [glob ${destroot}${thePrefix}/lib/pkgconfig/*.pc] {
    42             reinplace -q "s|Libs: |Libs: -Wl,-rpath,\$\{libdir\} |g" ${p}
    43         }
    4441        # also make certain no one can re-arrange the order of the linker command line
    4542        # and -L and -l arguments cannot get separated causing the wrong libraries to be linked.
    4643        foreach lib {crypto ssl tls} {
    47             reinplace "s|-L\$\{libdir\} -l${lib}|\$\{libdir\}/lib$lib.${shext}|g" \
     44            reinplace -q "s|Libs: |Libs: -Wl,-rpath,\$\{libdir\} |g" \
    4845                ${destroot}${thePrefix}/lib/pkgconfig/lib${lib}.pc
    4946        }
     
    6360        depends_build-append    port:pkgconfig
    6461        conflicts_build         openssl-dev
    65         configure.ldflags-delete \
    66                                 -L${prefix}/lib
    6762    }
    6863}}}
    6964
    7065Next step is to test if this gives a fully functional Pextlib without libcrypto ABI clashes.
     66
     67EDIT: I've been able to fetch+checksum a distfile, so a priori LibreSSL is a suitable SSL provider for the ditto curl background. I've not been able to prevent a build conflict with `port:openssl` due to the curl build system but that won't be an issue for the majority of users who pull binary packages.