From 58bf01e50ff767798d136c94e9faa85886e870ce Mon Sep 17 00:00:00 2001 From: tnn Date: Fri, 7 Sep 2007 13:26:20 +0000 Subject: Fix installation of php extensions on HPUX. --- lang/php/ext.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lang') diff --git a/lang/php/ext.mk b/lang/php/ext.mk index 4ef6ddaa13a..3f85b27d717 100644 --- a/lang/php/ext.mk +++ b/lang/php/ext.mk @@ -1,4 +1,4 @@ -# $NetBSD: ext.mk,v 1.17 2007/06/11 17:59:23 heinz Exp $ +# $NetBSD: ext.mk,v 1.18 2007/09/07 13:26:20 tnn Exp $ # # PHP extension package framework, for both PECL and bundled PHP extensions. # @@ -61,6 +61,12 @@ MESSAGE_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR} MESSAGE_SRC+= ${.CURDIR}/MESSAGE .endif +.if ${OBJECT_FMT} == "SOM" +SHLIB_SUFFIX= sl +.else +SHLIB_SUFFIX= so +.endif + pre-configure: phpize-module phpize-module: @@ -80,7 +86,7 @@ do-install: do-module-install do-module-install: ${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/${PHP_EXTENSION_DIR} - ${INSTALL_DATA} ${MODULESDIR}/${PKGMODNAME}.so \ + ${INSTALL_DATA} ${MODULESDIR}/${PKGMODNAME}.${SHLIB_SUFFIX} \ ${DESTDIR:Q}${PREFIX:Q}/${PHP_EXTENSION_DIR} .if defined(USE_PHP_EXT_PATCHES) -- cgit v1.2.3