mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	No not allow static linking on macOS.
This commit is contained in:
		@@ -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"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user