37 | | # we really should replace the -L/here -lfoo with /here/libfoo.? so |
38 | | # clever compilers/linkers cannot reorder the arguments and we can |
39 | | # build this port without build conflict on openssl(-dev)!! |
40 | | reinplace -q "s|Libs: |Libs: -Wl,-rpath,${thePrefix}/lib |g" ${p} |
| 42 | reinplace -q "s|Libs: |Libs: -Wl,-rpath,\$\{libdir\} |g" ${p} |
| 43 | } |
| 44 | # also make certain no one can re-arrange the order of the linker command line |
| 45 | # and -L and -l arguments cannot get separated causing the wrong libraries to be linked. |
| 46 | foreach lib {crypto ssl tls} { |
| 47 | reinplace "s|-L\$\{libdir\} -l${lib}|\$\{libdir\}/lib$lib.${shext}|g" \ |
| 48 | ${destroot}${thePrefix}/lib/pkgconfig/lib${lib}.pc |