emacs-devel
[Top][All Lists]
Advanced

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

Re: Problems with EDE


From: Chong Yidong
Subject: Re: Problems with EDE
Date: Thu, 08 Oct 2009 10:11:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

"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]