diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-10-26 18:51:22 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-10-26 18:51:22 +0200 |
commit | fc95fdaebe5f99ceb6ad0ea5fe0d8ea44ba92aab (patch) | |
tree | e3f99d6a9b4ff97bbb68042e21f02ad8d522557a /distro | |
parent | 20d83444dda3ccbb4e8bbff1d4cbfe429eb015f6 (diff) | |
download | patches-fc95fdaebe5f99ceb6ad0ea5fe0d8ea44ba92aab.tar patches-fc95fdaebe5f99ceb6ad0ea5fe0d8ea44ba92aab.tar.gz |
distro: gcc: Adjust to support non-x86_64 architectures.
* distro/packages/base.scm (gcc-4.7)[arguments]: In the `pre-configure'
phase, patch all the relevant gcc/config files, not just those for
x86_64-linux-gnu.
Diffstat (limited to 'distro')
-rw-r--r-- | distro/packages/base.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/distro/packages/base.scm b/distro/packages/base.scm index 4cf9f70a23..ca85ca1f3e 100644 --- a/distro/packages/base.scm +++ b/distro/packages/base.scm @@ -751,7 +751,8 @@ BFD (Binary File Descriptor) library, `gprof', `nm', `strip', etc.") ;; cross-compiler builds. ;; Fix the dynamic linker's file name. - (substitute* "gcc/config/i386/linux64.h" + (substitute* (find-files "gcc/config" + "^linux(64|-elf)?\\.h$") (("#define GLIBC_DYNAMIC_LINKER([^ ]*).*$" _ suffix) (format #f "#define GLIBC_DYNAMIC_LINKER~a \"~a\"~%" suffix @@ -759,9 +760,8 @@ BFD (Binary File Descriptor) library, `gprof', `nm', `strip', etc.") ;; Tell where to find libstdc++, libc, and `?crt*.o', except ;; `crt{begin,end}.o', which come with GCC. - (substitute* '("gcc/config/gnu-user.h" - "gcc/config/i386/gnu-user.h" - "gcc/config/i386/gnu-user64.h") + (substitute* (find-files "gcc/config" + "^(gnu-user(64)?|linux-elf)\\.h$") (("#define LIB_SPEC (.*)$" _ suffix) (format #f "#define LIB_SPEC \"-L~a/lib -rpath=~a/lib \ -rpath=~a/lib64 -rpath=~a/lib \" ~a~%" |