pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to adjust runtime search paths

On Sat, Aug 13, 2022 at 07:09:28PM +0530, Mayuresh wrote:
> I am trying to work around the raspberrypi-userland PLIST clash with
> MesaLib, by changing the installation home to ${PREFIX}/raspi
> Excerpt of the patch is:

Tried a lot of CMAKE options, but could not get it right. The Wl,-R
options appear correct in the configuration generated, but simply refuses
to reflect in the binaries. As a last resort I am patching the RPATH.

    +RASPI_PREFIX=  ${PREFIX}/raspi
     SUBST_CLASSES+=                vc                pre-configure      Fixing hard-coded install paths.                makefiles/cmake/vmcs.cmake          -e 's,/opt/vc,${PREFIX},g'          -e 's,/opt/vc,${RASPI_PREFIX},g'
    +TOOL_DEPENDS+=      patchelf-[0-9]*:../../devel/patchelf
    +FIX_RPATH+=    ${DESTDIR}${RASPI_PREFIX}/sbin/*
    +FIX_RPATH+=    ${DESTDIR}${RASPI_PREFIX}/lib/*.so
    +FIX_RPATH+=    ${DESTDIR}${RASPI_PREFIX}/lib/plugins/*.so
    +       for bin in ${FIX_RPATH}; do \
    +               echo $$bin; \
    +               ${PREFIX}/bin/patchelf --set-rpath ${RASPI_PREFIX}/lib $$bin; \
    +       done

Any suggestions for a simpler solution are welcome.


Home | Main Index | Thread Index | Old Index