Commit c2ebad6cdda125e0ca8f0a0ba70cec53b15406df

sammy 2008-04-27T19:55:30

* 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.

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 = \