mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 18:09:59 +00:00
configure : Disable versioned dynamic library when compling for Android.
Closes: https://github.com/erikd/libsndfile/issues/51
This commit is contained in:
parent
20b7b13d35
commit
432479b3f5
@ -63,7 +63,7 @@ AC_CHECK_PROG(HAVE_XCODE_SELECT, xcode-select, yes, no)
|
||||
CLEAN_VERSION=`echo $PACKAGE_VERSION | $SED "s/p.*//"`
|
||||
VERSION_MINOR=`echo $CLEAN_VERSION | $SED "s/.*\.//"`
|
||||
|
||||
SHARED_VERSION_INFO="1:$VERSION_MINOR:0"
|
||||
SHARED_VERSION_INFO="-version-info 1:$VERSION_MINOR:0"
|
||||
|
||||
#------------------------------------------------------------------------------------
|
||||
|
||||
@ -410,6 +410,11 @@ case "$host_os" in
|
||||
openbsd*)
|
||||
os_is_openbsd=1
|
||||
;;
|
||||
linux-android*)
|
||||
# Disable versioned libraries for Android.
|
||||
# See: https://github.com/erikd/libsndfile/issues/51
|
||||
SHARED_VERSION_INFO=""
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_DEFINE_UNQUOTED(OS_IS_WIN32, ${os_is_win32}, [Set to 1 if compiling for Win32])
|
||||
|
@ -46,7 +46,7 @@ endif
|
||||
|
||||
#===============================================================================
|
||||
# MinGW requires -no-undefined if a DLL is to be built.
|
||||
libsndfile_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ @SHLIB_VERSION_ARG@
|
||||
libsndfile_la_LDFLAGS = -no-undefined @SHARED_VERSION_INFO@ @SHLIB_VERSION_ARG@
|
||||
libsndfile_la_SOURCES = $(FILESPECIFIC) $(noinst_HEADERS)
|
||||
nodist_libsndfile_la_SOURCES = $(nodist_include_HEADERS)
|
||||
libsndfile_la_LIBADD = GSM610/libgsm.la G72x/libg72x.la ALAC/libalac.la \
|
||||
|
Loading…
Reference in New Issue
Block a user