[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shared object and Makefile.am
From: |
Wesley Smith |
Subject: |
Re: shared object and Makefile.am |
Date: |
Sat, 19 Jun 2010 05:57:48 -0700 |
On Sat, Jun 19, 2010 at 5:50 AM, Ralf Wildenhues <address@hidden> wrote:
> Hello Wesley,
>
> * Wesley Smith wrote on Sat, Jun 19, 2010 at 02:40:53PM CEST:
>> I'm trying to use autotools to compile shared object Lua modules. The
>> way these modules are named differs from the typical .so conventions
>> because they're not actually libs one links against but are instead
>> loaded by Lua itself. For example, a Lua module binding OpenGL would
>> look like opengl.so instead of libopengl.so.
>
> Is that true for all systems, even those where the usual shared library
> extension is different, e.g., .sl on HP-UX systems, .dll on w32 ones,
> etc.?
On Windows, it's opengl.dll. On OSX it's opengl.so as well. Not sure
about the others.
>
> You can avoid warnings about the 'lib' prefix by making these things
> modules instead of libraries, as in
> lib_LTLIBRARIES = opengl.la
> opengl_la_LDFLAGS = -module -avoid-version
Thank you!!
>> INCLUDES = -I$(srcdir)/include -I/usr/include/lua5.1 -I/usr/include/GL
>
> This is ok, but INCLUDES is an old name; use AM_CPPFLAGS instead.
Where is this documented? I've been looking here:
http://www.gnu.org/software/autoconf/manual/autoconf.html . There's
not much in the way of what the various Makefile.am conventions are on
this page. Is there a better reference?
Your suggestions were spot on. Thanks very much!
wes