From 4f2de22d0d7df31098a01819375858c428be0201 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 5 Apr 2013 19:17:25 +0200 Subject: [PATCH] Force Mac OS shared library extension to .so Darwin and libtool seem confused about what shared library extension they actually use. https://bugs.freedesktop.org/show_bug.cgi?id=57714 --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b3c7610..6614ae5 100644 --- a/configure.ac +++ b/configure.ac @@ -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) -- 1.8.1.4