diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-03-05 03:03:19 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-03-05 03:03:19 +0800 |
commit | 9c4380393eb32dde391a26e83e358f1a9a1939f2 (patch) | |
tree | d0337f77ca1a3db21dee5b5315c8bf05d8173ffb /chapter08 | |
parent | cc2c231b500bb4ae0fbbb1ff2bda7707dfd2189e (diff) |
gcc: use $(gcc -dumpmachine) instead of *linux-gnu
It's consistent with other commands in the same page, and also helpful
for porting to targets with different triplets (-musl or -gnuabi64).
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/gcc.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 4c62a8d17..16bb5f99f 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -174,7 +174,7 @@ rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</useri <systemitem class="username">root</systemitem> user and group:</para> <screen><userinput remap="install">chown -v -R root:root \ - /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed}</userinput></screen> + /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include{,-fixed}</userinput></screen> <para>Create a symlink required by the <ulink url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s09.html">FHS</ulink> |