Skip to content

Commit

Permalink
Force Mac OS shared library extension to .so
Browse files Browse the repository at this point in the history
Darwin and libtool seem confused about what shared library
extension they actually use.

https://bugs.freedesktop.org/show_bug.cgi?id=57714
  • Loading branch information
stefwalter committed May 28, 2013
1 parent 96771f4 commit 6132376
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,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)

Expand Down

0 comments on commit 6132376

Please sign in to comment.