Back: DLL Support with GNU Autotools
Forward: A for DLLs
FastBack: A for DLLs
Up: DLLs with Libtool
FastForward: Package Installation
Top: Autoconf, Automake, and Libtool
Contents: Table of Contents
Index: Index
About: About this document

25.4.2 A for DLLs

First of all we will autoconfiscate(66) the source files above with a minimal setup:

`' is used to generate the `' template for the `configure' script:
## Process this file with automake to produce

libhello_la_SOURCES     = hello.c
libhello_la_LDFLAGS     = -no-undefined -version-info 0:0:0

include_HEADERS         = hello.h

bin_PROGRAMS            = hello
hello_SOURCES           = main.c
hello_LDADD             =

The new feature introduced in this file is the use of the `-no-undefined' flag in the libhello_la_LDFLAGS value. This flag is required for Windows DLL builds. It asserts to the linker that there are no undefined symbols in the `' target, which is one of the requirements for building a DLL outlined earlier. See section 11.2.1 Creating Libtool Libraries with Automake.

For an explanation of the contents of the rest of this `', See section Introducing GNU automake.

This document was generated by Gary V. Vaughan on February, 8 2006 using texi2html