This is a patch that allows me to cross-compile POP3Lite from i386-linux-gnu to i386-freebsdelf4.0 Libtool thinks that is should generate a.out libs, which is not what we want. It also has some weird misconceptions that must be cured. This patch is an excerpt from a greater one, but this is sufficient. The rest of the original diff consisted of the differences between libtool-1.3.3+freebsd-ports and my libtool-1.3.5-3 (Debian GNU/Linux). Anyway, this works! Gergely Nagy <8@free.bsd.hu> --- libtool Thu Oct 19 18:00:00 2000 +++ libtool Thu Oct 19 18:06:48 2000 @@ -123,19 +123,19 @@ need_locks="no" # Do we need the lib prefix for modules? -need_lib_prefix=unknown +need_lib_prefix=no # Do we need a version for libraries? -need_version=yes +need_version=no # Whether dlopen is supported. dlopen=yes # Whether dlopen of programs is supported. -dlopen_self=no +dlopen_self=yes # Whether dlopen of statically linked programs is supported. -dlopen_self_static=unknown +dlopen_self_static=no # Compiler flag to prevent dynamic linking. link_static_flag="-static" @@ -153,14 +153,14 @@ thread_safe_flag_spec="" # Library versioning type. -version_type=freebsd-aout +version_type=freebsd-elf # Format of library name prefix. libname_spec="lib\$name" # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. -library_names_spec="\${libname}\${release}.so\$versuffix \$libname.so\$versuffix" +library_names_spec="\${libname}\${release}.so\$versuffix \$libname.so" # The coded name of the library, if different from the real name. soname_spec="" @@ -181,10 +181,10 @@ postuninstall_cmds="" # Method to check whether dependent libraries are shared objects. -deplibs_check_method="unknown" +deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB shared object" # Command to use when deplibs_check_method == file_magic. -file_magic_cmd="" +file_magic_cmd="/usr/bin/file" # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=""