app-emulation/open-vm-tools: fix rpath issues with sysroot

Adding "-Ldir" to the link flags causes libtool to also add "-rpath
dir". So if dir includes the expanded sysroot the resulting binary is
going to wind up referring a path that doesn't exist. To avoid this use
the special "=" path prefix that causes the linker to expand sysroot.
This commit is contained in:
Michael Marineau 2016-09-09 16:07:37 -07:00
parent da6798a373
commit be95f25ca1

View File

@ -64,10 +64,10 @@ src_configure() {
append-ldflags "-Wl,-rpath,${oemlib}" append-ldflags "-Wl,-rpath,${oemlib}"
# libdnet is installed to /usr/share/oem # libdnet is installed to /usr/share/oem
export CUSTOM_DNET_CPPFLAGS="-I${SYSROOT}${oeminc}" export CUSTOM_DNET_CPPFLAGS="-I=${oeminc}"
export CUSTOM_DNET_LIBS="-L${SYSROOT}${oemlib}" export CUSTOM_DNET_LIBS="-L=${oemlib}"
export CUSTOM_MSPACK_CPPFLAGS="-I${SYSROOT}${oeminc}" export CUSTOM_MSPACK_CPPFLAGS="-I=${oeminc}"
export CUSTOM_MSPACK_LIBS="-L${SYSROOT}${oemlib}" export CUSTOM_MSPACK_LIBS="-L=${oemlib}"
# >=sys-process/procps-3.3.2 not handled by configure # >=sys-process/procps-3.3.2 not handled by configure
export CUSTOM_PROCPS_NAME=procps export CUSTOM_PROCPS_NAME=procps