1 |
commit: 7afca3b66cac89ed09172181252aed8fde9836c7 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 13:22:48 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 13:22:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=7afca3b6 |
7 |
|
8 |
gcc-config: make USE_NATIVE_LINKS=no to clean /lib/cpp |
9 |
|
10 |
Bug: https://bugs.gentoo.org/724454 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
gcc-config | 6 +++++- |
14 |
1 file changed, 5 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/gcc-config b/gcc-config |
17 |
index 8f9d64c..09d38f5 100755 |
18 |
--- a/gcc-config |
19 |
+++ b/gcc-config |
20 |
@@ -332,7 +332,11 @@ update_wrappers() { |
21 |
|
22 |
# install the canonical cpp wrapper |
23 |
if ! is_cross_compiler ; then |
24 |
- atomic_ln "${EPREFIX%/}/usr/bin/${CTARGET}-cpp" "${EROOT}lib" "cpp" |
25 |
+ if [[ ${USE_NATIVE_LINKS} == yes ]]; then |
26 |
+ atomic_ln "${EPREFIX%/}/usr/bin/${CTARGET}-cpp" "${EROOT}lib" "cpp" |
27 |
+ else |
28 |
+ rm -f "${EROOT}lib/cpp" |
29 |
+ fi |
30 |
fi |
31 |
} |