diff options
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/eudev.xml | 2 | ||||
-rw-r--r-- | chapter06/gcc.xml | 10 |
2 files changed, 2 insertions, 10 deletions
diff --git a/chapter06/eudev.xml b/chapter06/eudev.xml index b0fd145b3..58acd5a03 100644 --- a/chapter06/eudev.xml +++ b/chapter06/eudev.xml @@ -73,7 +73,7 @@ BLKID_LIBS='-L/tools/lib -lblkid' \ <para>Create some directories now that are needed for tests, but will also be used as a part of installation:</para> -<screen><userinput remap="install">mkdir -pv /lib/{firmware,udev/devices/pts} +<screen><userinput remap="install">mkdir -pv /lib/{firmware,udev} mkdir -pv /lib/udev/rules.d mkdir -pv /etc/udev/rules.d</userinput></screen> diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index 9ab97ea22..73ea27b63 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -154,15 +154,7 @@ cd ../gcc-build</userinput></screen> Link Time Optimization (LTO):</para> <screen><userinput remap="install">install -dm755 /usr/lib/bfd-plugins -pushd /usr/lib/bfd-plugins - -if [ $(uname -m) == "i686" ]; then - ln -sfv ../../libexec/gcc/i686-pc-linux-gnu/&gcc-version;/liblto_plugin.so -else - ln -sfv ../../libexec/gcc/x86_64-unknown-linux-gnu/&gcc-version;/liblto_plugin.so -fi - -popd</userinput></screen> +ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so</userinput></screen> <para>Now that our final toolchain is in place, it is important to again ensure that compiling and linking will work as expected. We do this by performing |