mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #79737 (Building embed as static fails during install step).
This commit is contained in:
parent
315ea609da
commit
46e38a1927
3 changed files with 7 additions and 1 deletions
|
@ -16,7 +16,7 @@ build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
|
||||||
build-binaries: $(PHP_BINARIES)
|
build-binaries: $(PHP_BINARIES)
|
||||||
|
|
||||||
libphp.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
|
libphp.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
|
||||||
$(LIBTOOL) --mode=link $(CC) -shared $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
|
$(LIBTOOL) --mode=link $(CC) $(LIBPHP_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
|
||||||
-@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
|
-@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
|
||||||
|
|
||||||
libs/libphp.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
|
libs/libphp.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
|
||||||
|
|
|
@ -77,6 +77,9 @@ if test "$PHP_APXS2" != "no"; then
|
||||||
-i -a -n php"
|
-i -a -n php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LIBPHP_CFLAGS="-shared"
|
||||||
|
PHP_SUBST(LIBPHP_CFLAGS)
|
||||||
|
|
||||||
case $host_alias in
|
case $host_alias in
|
||||||
*aix*)
|
*aix*)
|
||||||
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
|
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
|
||||||
|
|
|
@ -10,10 +10,12 @@ AC_MSG_CHECKING([for embedded SAPI library support])
|
||||||
if test "$PHP_EMBED" != "no"; then
|
if test "$PHP_EMBED" != "no"; then
|
||||||
case "$PHP_EMBED" in
|
case "$PHP_EMBED" in
|
||||||
yes|shared)
|
yes|shared)
|
||||||
|
LIBPHP_CFLAGS="-shared"
|
||||||
PHP_EMBED_TYPE=shared
|
PHP_EMBED_TYPE=shared
|
||||||
INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
|
INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
|
||||||
;;
|
;;
|
||||||
static)
|
static)
|
||||||
|
LIBPHP_CFLAGS="-static"
|
||||||
PHP_EMBED_TYPE=static
|
PHP_EMBED_TYPE=static
|
||||||
INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
|
INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
|
||||||
;;
|
;;
|
||||||
|
@ -22,6 +24,7 @@ if test "$PHP_EMBED" != "no"; then
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test "$PHP_EMBED_TYPE" != "no"; then
|
if test "$PHP_EMBED_TYPE" != "no"; then
|
||||||
|
PHP_SUBST(LIBPHP_CFLAGS)
|
||||||
PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
||||||
PHP_INSTALL_HEADERS([sapi/embed/php_embed.h])
|
PHP_INSTALL_HEADERS([sapi/embed/php_embed.h])
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue