diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-06-19 12:43:09 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-07 11:44:36 +0000 |
commit | 28dba2a2843bf6d5c16256a8e4df47ce18ec48f1 (patch) | |
tree | 976b631a76f142b704b6131de452bb045efb90f9 /elements | |
parent | 23a3a3c746261c3ecb2aa961d91f988f0602a032 (diff) | |
download | definitions-28dba2a2843bf6d5c16256a8e4df47ce18ec48f1.tar.gz |
Proper support for powerpc64 (little and big endian)
Diffstat (limited to 'elements')
-rw-r--r-- | elements/gnu-toolchain/stage2-glibc.bst | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/elements/gnu-toolchain/stage2-glibc.bst b/elements/gnu-toolchain/stage2-glibc.bst index a5153c5b..043dccb4 100644 --- a/elements/gnu-toolchain/stage2-glibc.bst +++ b/elements/gnu-toolchain/stage2-glibc.bst @@ -100,9 +100,11 @@ config: # Install a symlink for the program interpreter (ld.so) so that binaries # built in stage 3 before the stage 3 glibc is built can use it. - # FIXME: get a better way of finding the name of the loader. The lib64 - # path is hardcoded into glibc in the file - # sysdeps/unix/sysv/linux/configure. + # + # The name of the dynamic loader is hardcoded in GCC during its 'configure' + # stage, but the file is actually provided by the libc (usually GLIBC). It + # would be better if we could ask GCC or GLIBC what the expected name of the + # ld.so is for the given platform rather than figuring it out - install -d %{install-root}/lib - | case "%{bst-target-arch}" in @@ -110,7 +112,11 @@ config: install -d "%{install-root}/lib64" ln -s "%{prefix}/lib/ld-linux-x86-64.so.2" \ "%{install-root}/lib64/ld-linux-x86-64.so.2" ;; - ppc64l|ppc64b) + ppc64l) + install -d "%{install-root}/lib64" + ln -s "%{prefix}/lib/ld64.so.2" \ + "%{install-root}/lib64/ld64.so.2" ;; + ppc64b) install -d "%{install-root}/lib64" ln -s "%{prefix}/lib/ld64.so.1" \ "%{install-root}/lib64/ld64.so.1" ;; |