From be95f25ca1dffca200079f91e1c6a7813bf4fa0d Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Fri, 9 Sep 2016 16:07:37 -0700 Subject: [PATCH] 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. --- .../open-vm-tools/open-vm-tools-9.10.0-r1.ebuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/open-vm-tools-9.10.0-r1.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/open-vm-tools-9.10.0-r1.ebuild index a2de736233..5e7c511c59 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/open-vm-tools-9.10.0-r1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/open-vm-tools/open-vm-tools-9.10.0-r1.ebuild @@ -64,10 +64,10 @@ src_configure() { append-ldflags "-Wl,-rpath,${oemlib}" # libdnet is installed to /usr/share/oem - export CUSTOM_DNET_CPPFLAGS="-I${SYSROOT}${oeminc}" - export CUSTOM_DNET_LIBS="-L${SYSROOT}${oemlib}" - export CUSTOM_MSPACK_CPPFLAGS="-I${SYSROOT}${oeminc}" - export CUSTOM_MSPACK_LIBS="-L${SYSROOT}${oemlib}" + export CUSTOM_DNET_CPPFLAGS="-I=${oeminc}" + export CUSTOM_DNET_LIBS="-L=${oemlib}" + export CUSTOM_MSPACK_CPPFLAGS="-I=${oeminc}" + export CUSTOM_MSPACK_LIBS="-L=${oemlib}" # >=sys-process/procps-3.3.2 not handled by configure export CUSTOM_PROCPS_NAME=procps