Nikita Karetnikov <[email protected]> skribis: >>> If you want to test any of the front-ends, don’t forget to set >>> LIBRARY_PATH and LD_LIBRARY_PATH, like so: >>> >>> $ export >>> LIBRARY_PATH=/nix/store/wmaxqx3p658v2yqjv00mss2shvn23h7a-glibc-2.18/lib >>> $ export >>> LD_LIBRARY_PATH=/nix/store/kvhg0fszagsx5y80sq79bkmb7yqvjfmd-gcc-go-4.8.1/lib > >> I guess that’s unnecessary when using ‘ld-wrapper’. > > I know nothing about it. Could you elaborate?
‘ld-wrapper’ is a wrapper around the linker that adds a -rpath argument for each -l argument (see the top of ld-wrapper.scm), such that all the needed libraries are in the resulting binary’s RUNPATH. > I tested each front end using the “hello, world” program. Is it enough? Yes. > From be260e7d9d4a7592129c0369eee52b156170d1cf Mon Sep 17 00:00:00 2001 > From: Nikita Karetnikov <[email protected]> > Date: Thu, 31 Oct 2013 19:54:36 +0000 > Subject: [PATCH] gnu: Add GCC front ends for Fortran, Go, Objective C, and > Objective C++. > > * gnu/packages/gcc.scm (custom-gcc, gfortran-4.8, gccgo-4.8) > (gcc-objc-4.8, gcc-objc++-4.8): New variables. > --- > gnu/packages/gcc.scm | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > > diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm > index dde0f0d..60bc5bb 100644 > --- a/gnu/packages/gcc.scm > +++ b/gnu/packages/gcc.scm > @@ -27,6 +27,7 @@ > #:use-module (guix packages) > #:use-module (guix download) > #:use-module (guix build-system gnu) > + #:use-module (guix utils) > #:use-module (ice-9 regex)) > > (define %gcc-infrastructure > @@ -211,6 +212,34 @@ Go. It also includes standard libraries for these > languages.") > (base32 > "1j6dwgby4g3p3lz7zkss32ghr45zpdidrg8xvazvn91lqxv25p09")))))) > > +(define (custom-gcc gcc name languages) Please add a docstring here, and then OK to push. Thank you! Ludo’.
