* Kārlis Repsons wrote on Sun, Apr 25, 2010 at 12:07:44PM CEST:
> On Sunday 25 April 2010 08:22:12 Ralf Wildenhues wrote:
> > You can use libtool for portable creation of shared libraries.
> > http://www.gnu.org/software/libtool is the place to go to,
> > and libt...@gnu.org is the list to ask questions on.
> Thanks, I'll read that, just it's somewhat confusing how to start,
> when there are three programs to deal with.

Most trivial example, untested:

cat >configure.ac <<\END
AC_INIT([my-package], [1.0], [my-email-address])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign])
LT_INIT([win32-dll])
AC_PROG_CC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
END

cat >Makefile.am <<\END
lib_LTLIBRARIES = libfoo.la
libfoo_la_SOURCES = foo.c
libfoo_la_LDFLAGS = -no-undefined
bin_PROGRAMS = bar
bar_SOURCES = bar.c
bar_LDADD = libfoo.la
END

mkdir m4
touch foo.c bar.c

libtoolize -c
autoreconf -vi

./configure --host=i586-mingw32msvc  # the prefix of my cross compiler
make
make install



_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to