mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-24 01:40:07 -05:00
Add --enable-symbolic-functions configure option
Added --enable-symbolic-functions configure option. This will detect and pass -Bsymbolic-functions linker option, which gives you better performance and smaller binary size. Only recent binutils supports this option.
This commit is contained in:
parent
41dfdba7fb
commit
3b1153c435
2 changed files with 24 additions and 1 deletions
17
configure.in
17
configure.in
|
|
@ -107,6 +107,23 @@ else
|
|||
fi
|
||||
AM_CONDITIONAL(VERSIONED_SYMBOLS, test x$versioned = xyes)
|
||||
|
||||
dnl Check for symbolic-functions
|
||||
AC_MSG_CHECKING(for symbolic-functions)
|
||||
AC_ARG_ENABLE(symbolic-functions,
|
||||
AS_HELP_STRING([--enable-symbolic-functions],
|
||||
[use -Bsymbolic-functions option if available (optmization for size and speed)]),
|
||||
symfuncs="$enableval", symfuncs="no")
|
||||
if test "$symfuncs" = "yes"; then
|
||||
if ld --help | grep -q -- '-Bsymbolic-functions'; then
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(not supported by ld)
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
AM_CONDITIONAL(SYMBOLIC_FUNCTIONS, test x"$symfuncs" = xyes)
|
||||
|
||||
dnl See if toolchain has a custom prefix for symbols ...
|
||||
AC_MSG_CHECKING(for custom symbol prefixes)
|
||||
SYMBOL_PREFIX=` \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue