7073971 proftpd have to disable lazy binding to simplify chroot
authortomas klacko - Sun Microsystems - Prague Czech Republic <tomas.klacko@oracle.com>
Thu, 04 Aug 2011 00:43:00 -0700
changeset 455 0806667217c9
parent 454 1ef5e4f29411
child 456 e733e35e223e
7073971 proftpd have to disable lazy binding to simplify chroot
components/proftpd/Makefile
--- a/components/proftpd/Makefile	Thu Aug 04 11:29:10 2011 +0530
+++ b/components/proftpd/Makefile	Thu Aug 04 00:43:00 2011 -0700
@@ -52,7 +52,8 @@
 IPS_COMPONENT_VERSION=  $(COMPONENT_VERSION).0.5
 
 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP="
-CONFIGURE_OPTIONS +=	LDFLAGS="-lbsm"
+# Force immediate binding because of chroot().
+CONFIGURE_OPTIONS +=	LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
 CONFIGURE_OPTIONS +=	install_user=$(LOGNAME)
 CONFIGURE_OPTIONS +=	install_group=`groups | cut -f 1 -d ' '`
 CONFIGURE_OPTIONS +=	--sysconfdir=$(ETCDIR)