[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnucap-devel] compiling shared modules (was: Compiling and loading gEDA
From: |
Felix Salfelder |
Subject: |
[Gnucap-devel] compiling shared modules (was: Compiling and loading gEDA/gschem plugin) |
Date: |
Thu, 9 Aug 2012 14:24:16 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Thu, Aug 09, 2012 at 12:13:19PM +0530, address@hidden wrote:
> On Thu, Aug 9, 2012 at 11:59 AM, al davis <address@hidden> wrote:
> > Make has a collection of default rules, so even though
> > lang_geda.o is not explicitly listed in the makefile, make finds
> > a rule to make it. Since .o is normally not "shared", the
> > "-shared" flag is not used.
>
> Okay, but In order for makefile to compile to a shared object file, we
> need to specifiy that, right?
see the "geda_shared_module" branch (on tool). lines like these should
work for any such module:
plugin_LTLIBRARIES += lang_geda.la
lang_geda_la_SOURCES = lang_geda.cc d_net.cc d_place.cc
lang_geda_la_LDFLAGS = -module -shared
lang_geda_la_CPPFLAGS = $(AM_CPPFLAGS) @GEDA_CFLAGS@
after "make install" to $prefix
LD_LIBRARY_PATH=$prefix/share/gnucap $prefix/bin/gnucap
>load lang_geda.so
works. i havent yet patched gnucap to find it automatically.
regards
felix
PS: please test before merge. also -lgeda must be removed from most
gcc invocations...
- [Gnucap-devel] (GSoC) Compiling and loading gEDA/gschem plugin [was: Re: gsoc - gnucap project], address@hidden, 2012/08/07
- Re: [Gnucap-devel] (GSoC) Compiling and loading gEDA/gschem plugin [was: Re: gsoc - gnucap project], al davis, 2012/08/09
- Re: [Gnucap-devel] (GSoC) Compiling and loading gEDA/gschem plugin [was: Re: gsoc - gnucap project], address@hidden, 2012/08/09
- Re: [Gnucap-devel] (GSoC) Compiling and loading gEDA/gschem plugin [was: Re: gsoc - gnucap project], al davis, 2012/08/09
- Re: [Gnucap-devel] (GSoC) Compiling and loading gEDA/gschem plugin [was: Re: gsoc - gnucap project], address@hidden, 2012/08/10
- Re: [Gnucap-devel] (GSoC) Compiling and loading gEDA/gschem plugin [was: Re: gsoc - gnucap project], address@hidden, 2012/08/10
- Re: [Gnucap-devel] (GSoC) Compiling and loading gEDA/gschem plugin [was: Re: gsoc - gnucap project], al davis, 2012/08/10