Fix build with separate objdirs
authorBen Kaduk <kaduk@mit.edu>
Tue, 26 Mar 2013 21:57:28 +0000 (17:57 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 27 Mar 2013 12:55:31 +0000 (05:55 -0700)
The conversion of pam/ to use libtool introduced references to
file names with LT_CCRULE that are not subject to make's vpath
searching.

Sprinkle ${srcdir} accordingly to fix the build.

Change-Id: Ia500fe2a57813fdd93ca1767e243fd947d6b8e1e
Reviewed-on: http://gerrit.openafs.org/9677
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/pam/Makefile.in

index f84a7c2..a0ac933 100644 (file)
@@ -26,15 +26,15 @@ CFLAGS_ktc_krb.lo        = -DAFS_KERBEROS_ENV -I../auth
 
 afs_setcred.lo: afs_setcred.c afs_pam_msg.h afs_message.h afs_util.h
 afs_setcred_krb.lo: afs_setcred.c afs_pam_msg.h afs_message.h afs_util.h
-       $(LT_CCRULE) afs_setcred.c
+       $(LT_CCRULE) ${srcdir}/afs_setcred.c
 
 afs_auth.lo: afs_auth.c afs_pam_msg.h afs_message.h afs_util.h
 afs_auth_krb.lo: afs_auth.c afs_pam_msg.h afs_message.h afs_util.h
-       $(LT_CCRULE) afs_auth.c
+       $(LT_CCRULE) ${srcdir}/afs_auth.c
 
 afs_util.lo: afs_util.c afs_pam_msg.h afs_message.h afs_util.h
 afs_util_krb.lo: afs_util.c afs_pam_msg.h afs_message.h afs_util.h
-       $(LT_CCRULE) afs_util.c
+       $(LT_CCRULE) ${srcdir}/afs_util.c
 
 ktc_krb.lo: ${srcdir}/../auth/ktc.c ${TOP_INCDIR}/afs/cellconfig.h \
                ${TOP_INCDIR}/afs/auth.h ${srcdir}/../auth/keys.h \