]> granicus.if.org Git - p11-kit/commitdiff
Force Mac OS shared library extension to .so
authorStef Walter <stefw@gnome.org>
Fri, 5 Apr 2013 17:17:25 +0000 (19:17 +0200)
committerStef Walter <stefw@gnome.org>
Tue, 28 May 2013 09:18:57 +0000 (11:18 +0200)
Darwin and libtool seem confused about what shared library
extension they actually use.

https://bugs.freedesktop.org/show_bug.cgi?id=57714

configure.ac

index 3511800a6df7cb90ed9b903e12427a5af9ac8763..382c96abbdfe6e95d52ac176f50915b156236a45 100644 (file)
@@ -398,7 +398,17 @@ echo $PACKAGE_VERSION | tr '.' ' ' | while read major minor unused; do
        break
 done
 
-eval SHLEXT=$shrext_cmds
+case "$host" in
+*-*-darwin*)
+       # It seems like libtool lies about this see:
+       # https://bugs.freedesktop.org/show_bug.cgi?id=57714
+       SHLEXT='.so'
+       ;;
+*)
+       eval SHLEXT=$shrext_cmds
+       ;;
+esac
+
 AC_DEFINE_UNQUOTED(SHLEXT, ["$SHLEXT"], [File extension for shared libraries])
 AC_SUBST(SHLEXT)