All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
libtool and shared libraries
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
libtool and shared libraries - Apr. 8, '04, 11:14:19 AM
|
|
|
aotto1968
Posts: 37
Joined: Apr. 7, '04,
From: Germany
Status: offline
|
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
|
|
|
RE: libtool and shared libraries - Apr. 8, '04, 11:21:44 AM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
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).
|
|
|
RE: libtool and shared libraries - Apr. 20, '04, 5:56:59 PM
|
|
|
tvierling
Posts: 7
Joined: Apr. 20, '04,
Status: offline
|
I've submitted patches to the libtool maintainers that implement shared objects on Interix. Hopefully it will show up in libtool-1.6.
|
|
|
RE: libtool and shared libraries - Apr. 20, '04, 7:40:50 PM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
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.
|
|
|
RE: libtool and shared libraries - Apr. 20, '04, 11:54:23 PM
|
|
|
tvierling
Posts: 7
Joined: Apr. 20, '04,
Status: offline
|
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.
|
|
|
RE: libtool and shared libraries - Apr. 21, '04, 12:04:30 AM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Indeed, PIC isn't working.
But I'm still wondering what it is that you did submit.
|
|
|
RE: libtool and shared libraries - Apr. 21, '04, 12:12:38 AM
|
|
|
tvierling
Posts: 7
Joined: Apr. 20, '04,
Status: offline
|
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-)
|
|
|
RE: libtool and shared libraries - Apr. 21, '04, 12:28:47 AM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
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).
|
|
|
RE: libtool and shared libraries - Mar. 8, '06, 6:11:01 AM
|
|
|
kingbing
Posts: 8
Joined: Sep. 20, '05,
Status: offline
|
Does this change mean that configure scripts will now automatically compile both static and shared libraries?
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|