pam: stop building it wrong
authorDerrick Brashear <shadow@dementia.org>
Wed, 3 Aug 2011 17:05:27 +0000 (13:05 -0400)
committerDerrick Brashear <shadow@dementia.org>
Sun, 7 Aug 2011 18:49:42 +0000 (11:49 -0700)
in the new lwp/pthread/shared universe, well, we have the
opportunity to be correct. and we chose to do it entirely wrong.
we're building a shared object. use the right rules. we need
to add some CFLAGS for PAM. do that using MODULE_CFLAGS instead
of just building a whole new CCRULE

Change-Id: Ie3e3c5ba902e5364cfa99d4dbd1b5b7fd4451127
Reviewed-on: http://gerrit.openafs.org/5153
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/pam/Makefile.in

index adcdda2..8a87b71 100644 (file)
@@ -7,7 +7,10 @@
 
 srcdir=@srcdir@
 include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.shared
 
+  OPTMZ = ${PAM_OPTMZ}
+    DBG = ${PAM_DBG}
    LIBS = ${TOP_LIBDIR}/libafsauthent_pic.a ${TOP_LIBDIR}/libafsrpc_pic.a \
          ${PAM_LIBS} @LIB_AFSDB@ ${MT_LIBS}
   KLIBS = ktc_krb.o ${TOP_LIBDIR}/libafsauthent_pic.a \
@@ -16,12 +19,9 @@ include @TOP_OBJDIR@/src/config/Makefile.config
  SHOBJS = afs_account.o afs_session.o afs_password.o \
          afs_pam_msg.o afs_message.o AFS_component_version_number.o
    OBJS = $(SHOBJS) test_pam.o
-INCLUDES=-I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} 
 
 
-AFS_CCRULE= $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$(@)) \
-               ${PAM_DBG} ${PAM_OPTMZ} \
-               ${INCLUDES} ${PAM_CFLAGS} -c -o $@
+MODULE_CFLAGS=${PAM_CFLAGS}
 
 .c.o:
        $(AFS_CCRULE) $<