> > I don't have any of the java stuff, but I may be able to help > talk you through > it. Since automake is already being used it should be relativly simple. > Basically you need 2 lines in the Makefile.am > > lib_LTLIBRARIES = libAnyDX.la > > libAnyDX_la_SOURCES = "the sources that go into it" > > and AM_PROG_LIBTOOL in the configure.in. You will probably also > need to run > libtoolize in the top directory to pick up some glue needed by libtool.
Well actually the way you use libtool in LessTif never work on Cygwin. It always try to creat *.so shared files, which are not supported on Windows. I once rewrote the configure, Makefile.am and other relevent scripts in Lesstif 0.88.0 so that it could auto-detect OS, and on Unix it created *.so and on Windows it created *.DLL. The DLLs are different ten *.so in a sense that DLL is considered like an executable on Windows and can never have undefined symbols. It also cannot have locally defined symbols. All symbols must be exported. The libbtools scripts for LessTif I mentioned above I sent to Peter as examples. In the meantime I lost mine, though i do have backup copies somewhere. In Conclusions if you added libtools support like you do in LessTif it might create problems for Cygwin compilers. Suhaib > > >From looking at the current Makefile.am, the SOURCES line could > be the tricky > one. From a quick look I would suggest > > libAnyDX_la_SOURCES = `ls ../dxl/*.c | sed -e "s&../dxl/object.c&&" \ > -e "s&../dxl/x11.c&&"` DXLink.c > > I suspect that it is currently bombing since nothing is compiled > with PIC, or > whatever that flag is for Solaris. > > > > On 03-Nov-99 at 20:04, David L. Thompson ([EMAIL PROTECTED]) wrote: > > Okay, > > > > Now that I've got all of my updates for the configure stuff working > > the way they should, I've gone about setting up a script to do auto > > builds on my platforms. However, I ran into a snag when compiling the > > JX stuff on Solaris. I've noticed that it is trying to build a shared > > library in src/uipp/java and tries two different ways. If either way > > doesn't work then it bombs. I guess this is why my --disable-javadx > > is important (I can still compile everything else). > > > > What am I after with this email? Does anyone want to help set up > > libtool for this little function? It is really only one small compile > > but I don't even know what args to pass to the compiler for the > > Solaris ld to make a shared library and I don't want to know. I'd > > rather use a tool that already knows about this stuff. How difficult > > would it be? > > > > David > > > .................................................................. > ........... > > David L. Thompson The University of Montana > > mailto:[EMAIL PROTECTED] Computer Science Department > > http://www.cs.umt.edu/u/dthompsn Missoula, MT 59812 > > Work Phone : (406)257-8530 >
