autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Infos for Unix/Windows portable library making?


From: Ralf Wildenhues
Subject: Re: Infos for Unix/Windows portable library making?
Date: Sun, 25 Apr 2010 12:39:43 +0200
User-agent: Mutt/1.5.20 (2009-10-28)

* 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 address@hidden 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]