I'm trying to get automake/libtool to allow me to install a library into
PHP's extension directory. This directory isn't in the same prefix as the
library directory my application's libraries will end up in, and is
determined by running "php-config --extension-dir"
I've tried overriding "libdir" in the Makefile.am in the php extension's
subdirectory, but that doesn't seem to do the trick; when I run "make
install", libtool balks at me with:
libtool: install: error: cannot install `php_mod_bt.la' to a directory not
ending in /usr/local/lib
make[1]: *** [install-libLTLIBRARIES] Error 1
make[1]: Leaving directory `/home/faraway/dev/mod_bt/src/apache2/php_mod_bt'
make: *** [install-am] Error 2
Any ideas? I've attached the offending Makefile.am...
Thanks,
Tyler
libdir=`$(PHP_CONFIG) --extension-dir`
TARGET=php_mod_bt.so
LIBS=`$(PHP_CONFIG) --libs`
LDFLAGS+=`$(PHP_CONFIG) --ldflags`
AM_CPPFLAGS=`$(PHP_CONFIG) --includes` -DCOMPILE_DL=1 \
-I$(top_srcdir)/src
AM_CFLAGS=-fpic
lib_LTLIBRARIES = php_mod_bt.la
php_mod_bt_la_SOURCES = php_mod_bt.c
php_mod_bt_la_LIBADD = $(top_srcdir)/src/libbtt/libbtt.la
php_mod_bt_la_LDFLAGS = -module -avoid-version
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool