diff options
author | veego <veego@pkgsrc.org> | 2000-08-04 19:36:41 +0000 |
---|---|---|
committer | veego <veego@pkgsrc.org> | 2000-08-04 19:36:41 +0000 |
commit | ebcad31c93242809308eea02b42c9030a4a7afe6 (patch) | |
tree | dde140ad3b289320c7b5d3aa922b9f0c2c709900 | |
parent | 1059ffa9dd01c9dd41997f9f5008e2d7569cf49f (diff) | |
download | pkgsrc-ebcad31c93242809308eea02b42c9030a4a7afe6.tar.gz |
Use a different ld option on Solaris.
-rw-r--r-- | www/php3-ldap/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/www/php3-ldap/Makefile b/www/php3-ldap/Makefile index 2b2c628d34e..a4ceb4fee4c 100644 --- a/www/php3-ldap/Makefile +++ b/www/php3-ldap/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2000/06/15 13:06:04 kleink Exp $ +# $NetBSD: Makefile,v 1.5 2000/08/04 19:36:41 veego Exp $ # PKGNAME= php-ldap-${PHP_VERSION} @@ -9,10 +9,18 @@ CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} BUILDING_EXTENSION_MODULE=yes +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +LD_SHARE_FLAG= -G +.else +LD_SHARE_FLAG= -Bshareable +.endif + do-build: cd ${WRKSRC}/functions && \ ${COMPILE.c} -I.. -I. -I${LOCALBASE}/include -fPIC -DPIC -DCOMPILE_DL ldap.c && \ - ld -Bshareable -o ldap.so ldap.o -L${LOCALBASE}/lib -R${LOCALBASE}/lib -lldap -llber + ld ${LD_SHARE_FLAG} -o ldap.so ldap.o -L${LOCALBASE}/lib -R${LOCALBASE}/lib -lldap -llber do-install: ${INSTALL_DATA} ${WRKSRC}/functions/ldap.so ${PREFIX}/lib/php3/ |