gnu: gcc-4.7: On powerpc64le, fix /lib64 references.
authorChris Marusich <cmmarusich@gmail.com>
Sun, 7 Feb 2021 00:29:40 +0000 (16:29 -0800)
committerChris Marusich <cmmarusich@gmail.com>
Wed, 24 Mar 2021 06:19:55 +0000 (23:19 -0700)
commitcac88b28b836e714b7b7e4c41b5e36a12df58925
treececce1d88bc734a03dadb8c71169ca8af7a155f5
parentfc7cf0c1ecc1ab6d59bab0040be917d5900d98f1
gnu: gcc-4.7: On powerpc64le, fix /lib64 references.

Fixes: <https://bugs.gnu.org/46253>.

* gnu/packages/gcc.scm (gcc-4.7)[#:phases][pre-configure]: When the
gcc/config/rs6000 directory exists, replace "/lib64" with "/lib" in all files
within it.  Note that this fix will be picked up by any package that re-uses
the pre-configure phase from gcc-4.7 (e.g., all the usual gcc packages).
(make-libstdc++)[#:phases][fix-rs6000-libdir]: New phase, which does the same
as above.  It was necessary to duplicate the fix here because make-libstdc++
does not re-use the pre-configure phase from gcc-4.7.
gnu/packages/gcc.scm