Linking the shared library FOO.la against the loadable module
Neil Williams
linux at codehelp.co.uk
Tue Sep 6 13:52:25 EDT 2005
Just revisiting this:
https://lists.gnucash.org/pipermail/gnucash-devel/2005-July/013366.html
This turns out to be one of the problems getting CVS GnuCash to compile on
MacOSX. So whereas it's only a warning on GNU/Linux, it halts the build on
OSX.
The fix is to remove LDFLAGS=-module line in the Makefile.am's in these
folders:
src/app-utils/
src/core-utils/
src/gnc-module/
src/gnc-module/test/*
src/engine/
src/backend/file
src/network-utils/
src/network-utils/test/
src/tax/us/
Where LDFLAGS is also used for GWRAP, just removing the -module prefix from
the line is sufficient.
Followed by a make clean before make.
From other projects, this appears to crop up if you move from LDFLAGS to
DYNAMIC_FLAG - could that be the problem?
I can find few references to what LDFLAGS=-module actually does, except this
one:
http://public.kitware.com/pipermail/cmake/2005-April/006329.html
> And a last question, what's the difference between a MODULE and a SHARED
> lib ? Is MODULE intended to be used for plugins ?
This is mainly used for Mac OSX where there is a distinction between
modules (.so) and shared libraries (.dylib). Modules on OSX can link to
libraries but nothing can link to modules. They are meant for plugins.
Seems strange to me.
Any clues as to what's going on?
--
Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050906/7af6f31a/attachment.bin
More information about the gnucash-devel
mailing list