aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-config')
-rwxr-xr-xgcc-config6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc-config b/gcc-config
index 8f9d64c..09d38f5 100755
--- a/gcc-config
+++ b/gcc-config
@@ -332,7 +332,11 @@ update_wrappers() {
# install the canonical cpp wrapper
if ! is_cross_compiler ; then
- atomic_ln "${EPREFIX%/}/usr/bin/${CTARGET}-cpp" "${EROOT}lib" "cpp"
+ if [[ ${USE_NATIVE_LINKS} == yes ]]; then
+ atomic_ln "${EPREFIX%/}/usr/bin/${CTARGET}-cpp" "${EROOT}lib" "cpp"
+ else
+ rm -f "${EROOT}lib/cpp"
+ fi
fi
}