mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Workaround for Informix set of libraries. One library depends on
another "library" (an object file). We build a standard library out of this object here, so that we can link it in at the right place later.
This commit is contained in:
parent
40cc9d9d7a
commit
7573b236ea
2 changed files with 14 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
INCLUDES=@INCLUDES@ -I@top_srcdir@ -I@top_srcdir@/libzend
|
||||
noinst_LTLIBRARIES=libphpext_informix.la
|
||||
noinst_LIBRARIES=libifx.a
|
||||
libifx_a_SOURCES=stub.c
|
||||
libifx_a_LIBADD=@IFX_OBJS@
|
||||
libphpext_informix_la_SOURCES=ifx.c
|
||||
libphpext_informix_la_LIBADD=@IFX_LIBS@
|
||||
|
||||
|
|
|
@ -60,7 +60,16 @@ WARNING: You specified Informix base install directory that is different
|
|||
AC_DEFINE_UNQUOTED(IFX_VERSION, $IFX_VERSION)
|
||||
AC_MSG_RESULT(yes)
|
||||
PHP_EXTENSION(informix)
|
||||
IFX_LIBS="$IFX_LFLAGS $IFX_LIBS"
|
||||
for i in $IFX_LIBS; do
|
||||
case "$i" in
|
||||
*.o)
|
||||
IFX_OBJS="$IFX_OBJS $i"
|
||||
IFX_LIBADD="$IFX_LIBADD -Lext/informix -lifx";;
|
||||
*)
|
||||
IFX_LIBADD="$IFX_LIBADD $i";;
|
||||
esac
|
||||
done
|
||||
IFX_LIBS="$IFX_LFLAGS $IFX_LIBADD"
|
||||
INCLUDES="$INCLUDES $IFX_INCLUDE"
|
||||
fi
|
||||
else
|
||||
|
@ -72,6 +81,7 @@ WARNING: You specified Informix base install directory that is different
|
|||
])
|
||||
AC_SUBST(INFORMIXDIR)
|
||||
AC_SUBST(IFX_LIBS)
|
||||
AC_SUBST(IFX_OBJS)
|
||||
|
||||
divert(5)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue