[Top][All Lists]

[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: Wed, 14 Oct 2009 23:05:50 -0400

On Fri, 2009-10-09 at 14:42 +0200, Sascha Wilde wrote:
> Sascha Wilde <address@hidden> wrote:
> > With target type "sharedobject" ede projects build shared libraries.
> > Using an ede automake project building such an target fails in tow
> > respects:
> Building sharedobjects in ede make projects fails, too:
>     -*- mode: compilation; default-directory: "/tmp/cedet-test5/" -*-
>     Compilation started at Fri Oct  9 14:39:45
>     make -f Makefile libfoo.so
>     gcc    -march=athlon-xp -O3 -c greet.c
>     gcc -march=athlon-xp -O3  -L. -o libfoo.so greet.o
>     /usr/lib/crt1.o: In function `_start':
>     (.text+0x18): undefined reference to `main'
>     collect2: ld returned 1 exit status
>     make: *** [libfoo.so] Error 1

I have checked in changes to the CEDET repository for the following:

* shared objects for Make now use libtool by default.
* Found a set of arguments for C++ and libtool that seem to work.
* updated my tests to exercise this case for C++.

One caveat is that you can't mix libtool and other C++ targets code in
the same Project due to some pretty basic conflicts with the inference
rules created.

I'm also not sure about the C version.

In any case, any assistance folks can provide on how best to use libtool
in these cases would be appreciated, as I am not an expert in this area.


reply via email to

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