mirror of
https://github.com/php/php-src.git
synced 2025-01-21 11:13:38 +08:00
Fix make install target on Cygwin, bug #20807
This commit is contained in:
parent
ca6b002e4c
commit
2421e79b60
@ -86,7 +86,14 @@ if test "$PHP_SAPI" = "default"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
|
||||
PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/sapi/cgi/Makefile.frag)
|
||||
SAPI_CGI_PATH=sapi/cgi/php-cgi
|
||||
case $host_alias in
|
||||
*cygwin* )
|
||||
SAPI_CGI_PATH=sapi/cgi/php-cgi.exe
|
||||
;;
|
||||
* )
|
||||
SAPI_CGI_PATH=sapi/cgi/php-cgi
|
||||
;;
|
||||
esac
|
||||
PHP_SUBST(SAPI_CGI_PATH)
|
||||
|
||||
PHP_TEST_WRITE_STDOUT
|
||||
|
@ -22,6 +22,10 @@ if test "$PHP_SAPI_CLI" != "no"; then
|
||||
*darwin*)
|
||||
BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
|
||||
;;
|
||||
*cygwin*)
|
||||
SAPI_CLI_PATH=sapi/cli/php.exe
|
||||
BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
|
||||
;;
|
||||
*)
|
||||
BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user