libtool and shared libraries (Full Version)

All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum



Message


aotto1968 -> libtool and shared libraries (Apr. 8, '04, 11:14:19 AM)

Hi,

I have an application which uses libtool to compile into a library ...
but libtool does only create static libraries ....

I need a library which can be opend with dlopen into a tcl interpreter

is any solution available?


mfg

aotto




Rodney -> RE: libtool and shared libraries (Apr. 8, '04, 11:21:44 AM)

You edit all of the "configure" files for the application.
There is at least one at the root of the application. With
some applications there are a couple more in subdirectories.
Look for them by 'find . -name configure'.

Then you can change the configure file(s) to do shared libraries.
Re-run configure after that and then do 'make'.

The changes needed to be done to each applications's configure file
are the same. There are 5 parts. The easiest thing to do is a
diff -c between an unchanged configure and an already changed
configure. Look at the changes and apply.

Most of the libraries in the source tree on the ftp site have the changes.
(libiconv for example).




tvierling -> RE: libtool and shared libraries (Apr. 20, '04, 5:56:59 PM)

I've submitted patches to the libtool maintainers that implement shared objects on Interix. Hopefully it will show up in libtool-1.6.




Rodney -> RE: libtool and shared libraries (Apr. 20, '04, 7:40:50 PM)

Great. Thanks.
I'm always running out of time to do this.

It'll be interesting to see how long it will take to spread.

What did you submit to them?
The g++ and g77 sections should get changed too.
The above "5" applied to just the "C" part.




tvierling -> RE: libtool and shared libraries (Apr. 20, '04, 11:54:23 PM)

The patch is "complete", using the libtool 1.5 m4 code, so it works for all languages automatically. However, it was submitted under the assumption that PIC was indeed working (see other thread), and may require modification.




Rodney -> RE: libtool and shared libraries (Apr. 21, '04, 12:04:30 AM)

Indeed, PIC isn't working.
But I'm still wondering what it is that you did submit.




tvierling -> RE: libtool and shared libraries (Apr. 21, '04, 12:12:38 AM)

quote:

ORIGINAL: Rodney

Indeed, PIC isn't working.
But I'm still wondering what it is that you did submit.


http://mail.gnu.org/archive/html/libtool-patches/2004-04/msg00096.html

This is before adding a "remove -fPIC" workaround that I'm working on now. You'll note that I also make reference to attempting support of the "native cc" -- i.e., the MSVC++ wrapper -- in the future. I have Visual Studio 6 on hand and plan to try beefing up the libtool changes to support it.

(I was the toolchain maintainer for NetBSD for quite a while and spent too much time in the deep underbellies of gcc and binutils. So this kind of work is nearly second nature to me now. 8-)




Rodney -> RE: libtool and shared libraries (Apr. 21, '04, 12:28:47 AM)

Just to note: the main reason I've been specifying things with gcc
has been so gdb (the debugger) can be used if needed.
On libraries that you want to be shared you need to use gcc/ld. The cc/c89
won't do that work.
But with any standard archive library or static application there is
no problem using cc/c89.
(I'm guessing you know most of this already, but for all the fair readers
this might help some).




kingbing -> RE: libtool and shared libraries (Mar. 8, '06, 6:11:01 AM)

Does this change mean that configure scripts will now automatically compile both static and shared libraries?




Page: [1]



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031