-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Akim Demaille wrote:
|> I'm not sure I understand correctly what -static means for |> programs. My understanding is that during the build, libraries |> against which the program is linked are statically linked |> if there are not installed *now*. Reading the documentation, it is |> somewhat unclear to me whether it refers to libraries that |> are installed or not *now* (the present), or meant to be installed |> or not (the future). |> |> `-static' |> If OUTPUT-FILE is a program, then do not link it against any |> uninstalled shared libtool libraries. |> |> My wondering comes from the fact that the attached tarball (to |> bootstrap via autoreconf -fvi) does not link statically on Darwin when |> the |> top level Makefile.am builds a lib_LTLIBRARIES (*to be installed*, but |> not |> yet installed). It builds, but the resulting binary is incomplete: |> |> sulaco% file hw |> hw: Mach-O executable ppc |> sulaco% otool -L hw |> hw: |> /usr/local/lib/libhw.0.dylib (compatibility version 1.0.0, |> current version 1.0.0)
|> |> (Isn't lilbtool expected to build a wrapper script in such a case?) |>
Hi Akim,
I have no idea what is supposed to happen in this situation. You have specified that static libraries should not be built and also asked that executables be statically linked against not-yet-installed libraries. If you configure with --enable-static then you get a statically linked executable, but the default in your application is not to build static libs, so it links against the only available thing the shared lib, yet it thinks it is building static and makes no wrapper script :(
Perhaps libtool should complain that -static was specified and no static library was available in this case? How on earth does linux manage this?
It seems that if there is no specific test in libtool for a feature, you can pretty much guarantee that it does not work on Darwin :(
Peter - -- Peter O'Gorman - http://www.pogma.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (Darwin)
iQCVAwUBQdnPDbiDAg3OZTLPAQJz1AP+JZ6PUiyshUb4vBx5Bv/90OttexxGiSaz VtI0Myi2O4qd97I8T3dUcfjjp0dXIOCyIpLVGN9UAs8qaiYVsMv8RG49C52MrUIG Oi62T4B7qzms0skey2LNQV1fAzU5QvJoVDe+E+7tAk/5bOvqYwMoWiNLda1lX99M mesv2dkHl3Y= =RZt/ -----END PGP SIGNATURE-----
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool
