diff -ruN nss_ldap-259.orig/Makefile.am nss_ldap-259/Makefile.am --- nss_ldap-259.orig/Makefile.am 2007-12-14 00:25:34 +0300 +++ nss_ldap-259/Makefile.am 2007-12-14 00:27:19 +0300 @@ -1,3 +1,5 @@ +SYSLIBDIR=/lib + if AIX authmod = NSS_LDAP else @@ -44,10 +46,10 @@ endif if GLIBC -LIBC_VERS = $(shell ls /lib/$(MULTI_OS_DIRECTORY)/libc-*.so | tail -n 1 | sed -e 's|.*libc-\(.*\)\.so|\1|') +LIBC_VERS = $(shell ls $(SYSLIBDIR)/$(MULTI_OS_DIRECTORY)/libc-*.so | tail -n 1 | sed -e 's|.*libc-\(.*\)\.so|\1|') NSS_LDAP_LIBC_VERSIONED = libnss_ldap-$(LIBC_VERS).so -NSS_VERS = $(shell ls /lib/$(MULTI_OS_DIRECTORY)/libnss_files.so.? | tail -n 1 | sed -e 's|.*libnss_files\.so\.\(.*\)|\1|') +NSS_VERS = $(shell ls $(SYSLIBDIR)/$(MULTI_OS_DIRECTORY)/libnss_files.so.? | tail -n 1 | sed -e 's|.*libnss_files\.so\.\(.*\)|\1|') NSS_LDAP_NSS_VERSIONED = libnss_ldap.so.$(NSS_VERS) endif