emacs-devel
[Top][All Lists]
Advanced

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

Re: Problems with EDE


From: Sascha Wilde
Subject: Re: Problems with EDE
Date: Thu, 08 Oct 2009 15:46:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

"Eric M. Ludlam" <address@hidden> wrote:
> 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. ;)

Hi *,

how about the following patch?  It fixes the problems for me.

diff -r 1667bfa67b40 lisp/cedet/ede/proj-obj.el
--- a/lisp/cedet/ede/proj-obj.el        Thu Oct 08 11:07:26 2009 +0200
+++ b/lisp/cedet/ede/proj-obj.el        Thu Oct 08 15:20:44 2009 +0200
@@ -47,6 +47,7 @@
                                  ))
    (availablelinkers :initform (ede-g++-linker
                                ;; Add more linker thingies here.
+                               ede-gcc-linker
                                ede-ld-linker
                                ede-gfortran-linker
                                ))
@@ -231,6 +232,18 @@
    :objectextention "")
   "Linker needed for c++ programs.")
 
+(defvar ede-gcc-linker
+  (ede-linker
+   "ede-gcc-linker"
+   :name "gcc"
+   :variables  '(("LD" . "gcc")
+                ("LD_LINK" .
+                 "$(LD) $(LDFLAGS) -L. -o $@")
+                )
+   :commands '("$(LD_LINK) $^")
+   :objectextention "")
+  "Generic gcc linker.")
+
 ;;; The EDE object compiler
 ;;
 (defmethod ede-proj-makefile-insert-variables ((this ede-object-compiler))
cheers
sascha
-- 
Sascha Wilde
    "Computers are good at following instructions,
     but not at reading your mind."
    D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9

reply via email to

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