summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-09-06 00:01:41 +0200
committerLudovic Courtès <ludo@gnu.org>2012-09-06 00:01:41 +0200
commit181df118871b6fdb8dae76d25f58294fd8e89f30 (patch)
treefb7ba699c92efb85a98c2823f7d4d55f58746565
parent5f456680807809c04eccdf71293e3326efd3a095 (diff)
downloadpatches-181df118871b6fdb8dae76d25f58294fd8e89f30.tar
patches-181df118871b6fdb8dae76d25f58294fd8e89f30.tar.gz
distro: gcc: Avoid retention of reference to `sed'.
* distro/base.scm (gcc-4.7)[pre-configure]: Patch fixincl.x.
-rw-r--r--distro/base.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/distro/base.scm b/distro/base.scm
index d3a1228297..6d31b9efab 100644
--- a/distro/base.scm
+++ b/distro/base.scm
@@ -714,7 +714,13 @@ BFD (Binary File Descriptor) library, `gprof', `nm', `strip', etc.")
(format #f "#define LIB_SPEC \"-L~a/lib -rpath=~a/lib64 -rpath=~a/lib \" ~a~%"
libc out out suffix))
(("([^ ]*)crt([^\\.])\\.o" _ prefix suffix)
- (string-append libc "/lib/" prefix "crt" suffix ".o")))))
+ (string-append libc "/lib/" prefix "crt" suffix ".o")))
+
+ ;; Don't retain a dependency on the build-time sed.
+ (substitute* "fixincludes/fixincl.x"
+ (("static char const sed_cmd_z\\[\\] =.*;")
+ "static char const sed_cmd_z[] = \"sed\";"))))
+
(alist-cons-after
'configure 'post-configure
(lambda _