emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with EDE


From: Eric M. Ludlam
Subject: Re: Problems with EDE
Date: Tue, 13 Oct 2009 21:56:29 -0400

Thanks,

I finally applied this to my repository as well (plus modifications also
mentioned on this thread.)

Eric

On Thu, 2009-10-08 at 10:11 -0400, Chong Yidong wrote:
> "Eric M. Ludlam" <address@hidden> writes:
> 
> > I wrote it in 1999, and at the time, that is what worked for me.
> >
> > EDE actually will use a range of different linkers, and the ld one was
> > the first match.  If you use:
> >
> > M-x customize-target RET
> >
> > you can select a new linker, such as a g++ linker, or the gfortran
> > linker.  Looking in ede-proj-obj.el (ede/proj/obj.el ?) it is hopefully
> > obvious how to add new linkers here.  I think my test suite I use uses c
> > ++ instead, and thus gets a different linker.  I apparently need to add
> > a new test. ;)
> 
> I see.  I added a new ede-gcc-linker, and the Make project now compiles
> properly.  Here's a patch for your source tree:
> 
> *** cedet/ede/ede-proj-obj.el.~1.15.~ 2009-08-18 19:56:57.000000000 -0400
> --- cedet/ede/ede-proj-obj.el 2009-10-08 10:10:29.000000000 -0400
> ***************
> *** 48,58 ****
>                                 ;; fortran or pascal can be added here
>                                 ))
>      (availablelinkers :initform (ede-g++-linker
> !                             ;; Add more linker thingies here.
> !                             ede-ld-linker
>                               ede-gfortran-linker
>                               ))
> !    (sourcetype :initform (ede-source-c 
>                         ede-source-c++
>                         ede-source-f77
>                         ede-source-f90
> --- 48,59 ----
>                                 ;; fortran or pascal can be added here
>                                 ))
>      (availablelinkers :initform (ede-g++-linker
> !                             ede-gcc-linker
>                               ede-gfortran-linker
> +                             ede-ld-linker
> +                             ;; Add more linker thingies here.
>                               ))
> !    (sourcetype :initform (ede-source-c
>                         ede-source-c++
>                         ede-source-f77
>                         ede-source-f90
> ***************
> *** 109,114 ****
> --- 110,125 ----
>      :uselinker t)
>     "Compiler for C sourcecode.")
>   
> + (defvar ede-gcc-linker
> +   (ede-linker
> +    "ede-gcc-linker"
> +    :name "gcc"
> +    :sourcetype '(ede-source-c)
> +    :variables  '(("C_LINK" . "$(CC) $(CFLAGS) $(LDFLAGS) -L."))
> +    :commands '("$(C_LINK) -o $@ $^")
> +    :objectextention "")
> +   "Linker for C sourcecode.")
> + 
>   (defvar ede-source-c++
>     (ede-sourcecode "ede-source-c++"
>                 :name "C++"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]