Make versioned shared library suffix configurable

This allows for different patterns for file names:
- lib.so.version for e.g. Linux
- lib.version.dylib for OSX (which is much more common than
lib.dylib.version)
- lib.dll for Windows (no version at all).
This commit is contained in:
Mike Hommey
2012-04-18 18:29:40 +02:00
committed by Jason Evans
parent 78f7352259
commit 85221d5d75
3 changed files with 18 additions and 8 deletions

View File

@@ -201,6 +201,7 @@ exe=
lib="lib"
DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
RPATH='-Wl,-rpath,$(1)'
SOREV='$(SO).$(REV)'
dnl Heap profiling uses the log(3) function.
LIBS="$LIBS -lm"
@@ -223,6 +224,7 @@ case "${host}" in
so="dylib"
force_tls="0"
DSO_LDFLAGS='-shared -Wl,-dylib_install_name,$(@F)'
SOREV='$(REV).$(SO)'
;;
*-*-freebsd*)
CFLAGS="$CFLAGS"
@@ -284,6 +286,7 @@ AC_SUBST([a])
AC_SUBST([exe])
AC_SUBST([lib])
AC_SUBST([DSO_LDFLAGS])
AC_SUBST([SOREV])
JE_COMPILABLE([__attribute__ syntax],
[static __attribute__((unused)) void foo(void){}],