* Use libtool' versioning features to call the library libftgl.2.1.3. This is not the recommended way to do, but it's nice to synchronise the package's version and the library's soname.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/configure.ac b/configure.ac
index 299cceb..51224cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,10 +1,19 @@
-AC_INIT(ftgl, 2.0.5, henryj@paradise.net.nz)
+AC_INIT(ftgl, 2.1.3, henryj@paradise.net.nz)
AC_CONFIG_AUX_DIR(.auto)
AC_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([no-define tar-ustar])
FTGL_PROG_CXX
+LT_MAJOR="2"
+LT_MINOR="1"
+LT_MICRO="3"
+AC_SUBST(LT_MAJOR)
+AC_SUBST(LT_MINOR)
+AC_SUBST(LT_MICRO)
+LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO"
+AC_SUBST(LT_VERSION)
+
AC_PROG_LIBTOOL
AC_PROG_INSTALL
diff --git a/src/Makefile.am b/src/Makefile.am
index 92a1607..bfc482d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -29,7 +29,8 @@ libftgl_la_SOURCES = \
$(ftgl_HEADERS)
libftgl_la_CPPFLAGS = -I$(top_srcdir)/include
libftgl_la_CXXFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
-libftgl_la_LDFLAGS = $(FT2_LIBS) $(GL_LIBS)
+libftgl_la_LDFLAGS = \
+ $(FT2_LIBS) $(GL_LIBS) -no-undefined -version-number @LT_VERSION@
ftgldir = $(includedir)/FTGL
ftgl_HEADERS = \