From: Quanah Gibson-Mount Date: Tue, 1 Sep 2009 01:45:20 +0000 (+0000) Subject: Portability fixes X-Git-Tag: ACLCHECK_0~231 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f6ba3b246a54f522741d35e8d985349b4d1976a5;p=openldap Portability fixes --- diff --git a/contrib/slapd-modules/smbk5pwd/Makefile b/contrib/slapd-modules/smbk5pwd/Makefile index 9d65025356..bf60565563 100644 --- a/contrib/slapd-modules/smbk5pwd/Makefile +++ b/contrib/slapd-modules/smbk5pwd/Makefile @@ -29,6 +29,13 @@ SSL_LIB=-lcrypto LDAP_LIB=-lldap_r -llber LIBS=$(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB) +prefix=/usr/local +ldap_subdir=/openldap +exec_prefix=$(prefix) +libdir=$(exec_prefix)/lib +libexecdir=$(prefix)/libexec +moduledir = $(libexecdir)$(ldap_subdir) + all: smbk5pwd.la @@ -37,12 +44,11 @@ smbk5pwd.lo: smbk5pwd.c smbk5pwd.la: smbk5pwd.lo $(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \ - -rpath $(PREFIX)/lib -module -o $@ $? $(LIBS) + -rpath $(libdir) -module -o $@ $? $(LIBS) clean: rm -f smbk5pwd.lo smbk5pwd.la install: smbk5pwd.la - mkdir -p $(PREFIX)/lib/openldap - $(LIBTOOL) --mode=install cp smbk5pwd.la $(PREFIX)/lib/openldap - $(LIBTOOL) --finish $(PREFIX)/lib + mkdir -p $(DESTDIR)$(moduledir) + $(LIBTOOL) --mode=install cp smbk5pwd.la $(DESTDIR)$(moduledir)