summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in2
-rw-r--r--sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r7.ebuild (renamed from sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r6.ebuild)2
2 files changed, 3 insertions, 1 deletions
diff --git a/sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in b/sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in
index 16a79b836800..d612cc46bb28 100644
--- a/sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in
+++ b/sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in
@@ -15,7 +15,7 @@ if [[ ${CHOST} == *"-winnt"* ]]; then
# in this case, PATH elements get the "/dev/fs/C/WINDOWS/SUA" prefix
absprefix=$(winpath2unix "$(unixpath2win "${absprefix}")")
fi
-mode=link
+[[ $0 == *windres* ]] && mode=compile || mode=link
orig_args=("$@")
for opt in "$@"; do
diff --git a/sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r6.ebuild b/sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r7.ebuild
index 24eabc399288..b447752a1536 100644
--- a/sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r6.ebuild
+++ b/sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r7.ebuild
@@ -41,11 +41,13 @@ src_install() {
dosym $wrapperdir/prefix-chain-wrapper $wrapperdir/${CHOST}-g++
dosym $wrapperdir/prefix-chain-wrapper $wrapperdir/${CHOST}-cpp
dosym $wrapperdir/prefix-chain-wrapper $wrapperdir/${CHOST}-c++
+ dosym $wrapperdir/prefix-chain-wrapper $wrapperdir/${CHOST}-windres
dosym $wrapperdir/${CHOST}-gcc $wrapperdir/gcc
dosym $wrapperdir/${CHOST}-g++ $wrapperdir/g++
dosym $wrapperdir/${CHOST}-cpp $wrapperdir/cpp
dosym $wrapperdir/${CHOST}-c++ $wrapperdir/c++
+ dosym $wrapperdir/${CHOST}-windres $wrapperdir/windres
# LDPATH is required to keep gcc-config happy :(
cat > "${T}"/$wrappercfg <<EOF