Discussion:
[bakefile-devel] Bakefile and libtool question
Stefano Antonelli
2010-12-31 00:08:14 UTC
Permalink
Hello list,

I'm not very familiar with autotools so that may be part of my problem, but I have a question related to Bakefile and libtool that I can't find an answer to.

What exactly is needed by libtool that Bakefile doesn't support?

Thanks,
Stef
Václav Slavík
2010-12-31 09:52:52 UTC
Permalink
Hi,
Post by Stefano Antonelli
What exactly is needed by libtool that Bakefile doesn't support?
Sorry, what do you mean?

If you're asking why Bakefile doesn't use libtool, then partly for historical reasons (at that time, libtool2 didn't exist yet and support for win32 was unsuable).

Vaclav
Stefano Antonelli
2011-01-01 00:10:13 UTC
Permalink
Post by Václav Slavík
Post by Stefano Antonelli
What exactly is needed by libtool that Bakefile doesn't support?
Sorry, what do you mean?
Well, what is preventing the use of libtool with autoconf makefiles generated by Bakefile?

The bakefiles for wxWidgets, for example, have comments saying:

"<!-- FIXME: until libtool scheme is implemented in bakefile -->"

There's also this ticket (albiet from 5 years ago):
http://www.bakefile.org/ticket/94

"> Last, do you advise to use libtool+bakefile for a

Not possible yet."

It's not obvious to me *why* it's not possible. What needs to be implemented. Can you please explain?

Bakefile replaces automake (except no maintaner mode), but I'm not sure how it replaces libtool. It looks to me like some custom bakefile code (as evident from the wxWidgets bakefiles) is required to replace libtool functionality on all platforms.
Post by Václav Slavík
If you're asking why Bakefile doesn't use libtool, then partly for historical reasons (at that time, libtool2 didn't exist yet and support for win32 was unsuable).
Actually, what I'm asking is how to use libtool with Bakefile generated Makefiles (autoconf format specifically). Is it as simple as including the proper libtool macros in configure.ac and supressing/adding some output from/to the autoconf Makefile? Can it be worked around in the .bkl, or does it require some serious changes to the Bakefile core?

Thanks,
Stef
Václav Slavík
2011-01-03 11:07:14 UTC
Permalink
Hi,
Post by Stefano Antonelli
does it require some serious changes to the Bakefile core?
Yes.

Vaclav
Stefano Antonelli
2011-01-04 04:06:42 UTC
Permalink
Post by Stefano Antonelli
does it require some serious changes to the Bakefile core?
Yes.
Alright, what needs to be done to change it? Is there a list somewhere? If not, could you please briefly describe the problem and maybe where to start looking at the code?

Thanks,
Stef
Václav Slavík
2011-01-04 10:29:27 UTC
Permalink
Post by Stefano Antonelli
Alright, what needs to be done to change it? Is there a list somewhere? If not, could you please briefly describe the problem and maybe where to start looking at the code?
There's no "problem", it's just done differently. Look in the autoconf format code, that's where everything autoconf related is done.

Vaclav
Stefano Antonelli
2011-01-05 08:32:09 UTC
Permalink
Post by Václav Slavík
Post by Stefano Antonelli
Alright, what needs to be done to change it? Is there a list somewhere? If not, could you please briefly describe the problem and maybe where to start looking at the code?
There's no "problem", it's just done differently. Look in the autoconf format code, that's where everything autoconf related is done.
It looks like all the formats use rules/makefile.bkl which forces autoconf format to use the rules dll and lib which contain __LINK_DLL_CMD and __LINK_LIB_CMD. Those variables are inherited from:

<include file="makefile_defs_$(MAKEFILE_SYNTAX).bkl"/>

So would it make sense to modify the __LINK_LIB_CMD and __LINK_DLL_CMD variables in the template __commands_tmpl in rules/makefile_defs_unix.bkl specifically for the autoconf case with libtool? Does that sound reasonable or am I in the wrong place?

-Stef
Václav Slavík
2011-01-05 08:55:53 UTC
Permalink
Hi,
Post by Stefano Antonelli
<include file="makefile_defs_$(MAKEFILE_SYNTAX).bkl"/>
So would it make sense to modify the __LINK_LIB_CMD and __LINK_DLL_CMD variables in the template __commands_tmpl in rules/makefile_defs_unix.bkl specifically for the autoconf case with libtool? Does that sound reasonable
I guess. Sorry, I really can't babysit you through this, you'll have to dig into the code yourself. Might make sense to start with something smaller first...

Vaclav

Loading...