~ruther/guix-local

ref: 21e583def33ecf9e9bae3a18df875cd3380e14ec guix-local/gnu/packages/gcc.scm -rw-r--r-- 22.0 KiB
21e583de — Ludovic Courtès 11 years ago
gnu: gcc: Add a RUNPATH to libstdc++.so so that it finds libgcc_s.so.

Fixes <http://bugs.gnu.org/20358>.
Reported by 宋文武 <iyzsong@gmail.com>.

* gnu/packages/gcc.scm (gcc-4.7)[arguments]: Add 'substitute*' form for
  "libstdc++-v3/src/Makefile.in".
38cf2ba0 — Ludovic Courtès 11 years ago
gnu: Remove all #:select from (gnu packages ...) modules.

This works around Guile bug <http://bugs.gnu.org/15540>.
Reported by Andreas Enge <andreas@enge.fr>.

* gnu/packages/engineering.scm: Don't #:select from (gnu packages ...).
* gnu/packages/gcc.scm: Likewise.
* gnu/packages/package-management.scm: Likewise.
* gnu/packages/photo.scm: Likewise.
* gnu/packages/pulseaudio.scm: Likewise.
* gnu/packages/moe.scm: Likewise, and #:select from (guix licenses)
  instead.
334345d9 — Mark H Weaver 11 years ago
Merge branch 'core-updates'
1421afa9 — Mark H Weaver 11 years ago
gnu: gcc: Do not pass -dynamic-linker to linker when !shared on arm.

Fixes <http://bugs.gnu.org/20102>.

* gnu/packages/patches/gcc-arm-link-spec-fix.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/gcc.scm (gcc-4.8, gcc-4.9): Add patch.
* gnu/packages/cross-base.scm (cross-gcc): Preserve patches from gcc-4.8.

Co-Authored-By: Ludovic Courtès <ludo@gnu.org>
dfc8bb20 — Ludovic Courtès 11 years ago
gnu: gcc: Disable RUNPATH validation for native builds.

* gnu/packages/gcc.scm (gcc-4.7)[arguments]: Pass
  #:validate-runpath? #f.
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: Override
  #:validate-runpath? with 'substitute-keyword-arguments'.
  (gcc-final)[arguments]: Likewise.
* gnu/packages/cross-base.scm (cross-gcc-arguments): Likewise.
7e3c9f74 — Ludovic Courtès 11 years ago
gnu: gcc: Fix libgcc_s directory in RUNPATH for cross-compiled binaries.

* gnu/packages/gcc.scm (gcc-4.7): Add 'libdir' procedure.  Use it to
  determine the right libdir, including when cross-compiling.  This
  fixes a bug whereby the RUNPATH of cross-compiled binaries would be
  set to $crossgcc/lib instead of $crossgcc/$triplet/lib.
  See <http://hydra.gnu.org/build/354389/nixlog/1/raw> for an example.
381c540b — Ludovic Courtès 11 years ago
Merge branch 'master' into core-updates
61af1014 — Ludovic Courtès 11 years ago
gnu: gcj: Use a versioned URL for 'javac.in'.

* gnu/packages/gcc.scm (javac.in): Use a ViewVC URL that specifies the
  CVS revision.
ed2b1c4f — Andreas Enge 11 years ago
gnu: gcj: Move javac.in from a file in the distribution to an origin.

* gnu/packages/javac.in: Delete file.
* gnu-system.am (MISC_DISTRO_FILES): Delete.
* gnu/packages/gcc.scm (javac.in): New variable.
  (gcj-4.8): Use it as an input.
e2808a4a — Andreas Enge 11 years ago
gnu: gcc: Add copyright line.
74574fd1 — Ricardo Wurmus 11 years ago
gnu: Add GCJ

* gnu/packages/gcc.scm (gcj-4.8, ecj-bootstrap-4.8): New variables.
* gnu/packages/javac.in: New file.
* gnu-system.am (MISC_DISTRO_FILES): Add it.
* Makefile.am (nobase_dist_guilemodule_DATA): Add MISC_DISTRO_FILES.
57b7e1a6 — Ludovic Courtès 11 years ago
Merge branch 'core-updates'

Conflicts:
	gnu/packages/bootstrap.scm
3f00ff8b — Mark H Weaver 11 years ago
gnu: Add toolchain support for 'armhf-linux'.

Based on preliminary work by John Darrington <john@darrington.wattle.id.au>.

* gnu/packages/cross-base.scm (xgcc-armhf): New variable.
* gnu/packages/gcc.scm (gcc-configure-flags-for-triplet): Add armhf case.
  (gcc-4.7)[pre-configure]: Add gcc/config/*/linux-eabi.h to the list
  of files in which to patch GLIBC_DYNAMIC_LINKER.
* gnu/packages/bootstrap.scm (glibc-dynamic-linker): Add armhf case.
* guix/utils.scm (gnu-triplet->nix-system, nix-system->gnu-triplet):
  Add armhf cases.
76e639a0 — Mark H Weaver 11 years ago
gnu: gcc: Use 'gcc-configure-flags-for-triplet' for native compilers too.

* gnu/packages/gcc.scm (gcc-configure-flags-for-triplet): Do not export it.
  (gcc-4.7): Pass the result of 'gcc-configure-flags-for-triplet' to configure
  for all builds, including native ones.
* gnu/packages/cross-base.scm (cross-gcc-arguments): Do not add the result of
  'gcc-configure-flags-for-triplet' here, since it is now included in the
  configure-flags inherited from gcc-4.8.
270b501e — Mark H Weaver 11 years ago
gnu: gcc-static: Remove -lgcc_s from GNU_USER_TARGET_LIB_SPEC.

* gnu/packages/make-bootstrap.scm (%gcc-static): Add 'remove-lgcc_s
  phase.
* gnu/packages/gcc.scm (gcc-4.7): Add comment.
fa1e2f3d — Mark H Weaver 11 years ago
Revert "gnu: gcc: Add '-lgcc_s' only when '-pthread' is given."

This reverts commit 9097e666d48c9b6c0263dcbe60b5af69ff7689f4.

This turned out not to be a good strategy.  Some build system, e.g. tcl's, do
not pass -pthread on GNU/Linux by default, but merely link with -lpthread.
Also, Ludovic found other cases where libgcc_s is dlopened by libc that have
nothing to do with pthreads, e.g. to walk the stack.
9097e666 — Mark H Weaver 11 years ago
gnu: gcc: Add '-lgcc_s' only when '-pthread' is given.

Suggested by Ludovic Courtès <ludo@gnu.org>.

* gnu/packages/gcc.scm (gcc-4.7): In our modified GNU_USER_TARGET_LIB_SPEC,
  add '-lgcc_s' only when '-pthread' is given.
91c47bef — Mark H Weaver 11 years ago
gnu: gcc: Improve dynamic linker patching code.

* gnu/packages/gcc.scm (gcc-4.7): Join multi-line definitions of
  GLIBC_DYNAMIC_LINKER* before attempting substitutions.
  (gcc-4.9)[arguments]: Remove arguments override.
23800e47 — Mark H Weaver 11 years ago
Merge branch 'master' into core-updates
fcdebadf — Mark H Weaver 11 years ago
gnu: gcc-4.9: Fix build on MIPS.

* gnu/packages/gcc.scm (gcc-4.9): Add 'join-two-line-dynamic-linker-defns
  phase.
Next