mirror of
https://github.com/tmux/tmux.git
synced 2025-04-24 05:18:47 +00:00
No not allow static linking on macOS.
This commit is contained in:
parent
85ef73591d
commit
c7c7e875a0
@ -69,6 +69,11 @@ AC_ARG_ENABLE(
|
|||||||
AS_HELP_STRING(--enable-static, create a static build)
|
AS_HELP_STRING(--enable-static, create a static build)
|
||||||
)
|
)
|
||||||
if test "x$enable_static" = xyes; then
|
if test "x$enable_static" = xyes; then
|
||||||
|
case "$host_os" in
|
||||||
|
*darwin*)
|
||||||
|
AC_MSG_ERROR([static linking is not supported on macOS])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
test "x$PKG_CONFIG" != x && PKG_CONFIG="$PKG_CONFIG --static"
|
test "x$PKG_CONFIG" != x && PKG_CONFIG="$PKG_CONFIG --static"
|
||||||
AM_LDFLAGS="-static $AM_LDFLAGS"
|
AM_LDFLAGS="-static $AM_LDFLAGS"
|
||||||
LDFLAGS="$AM_LDFLAGS $SAVED_LDFLAGS"
|
LDFLAGS="$AM_LDFLAGS $SAVED_LDFLAGS"
|
||||||
|
Loading…
Reference in New Issue
Block a user