OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1415-g1ec64ba

Gerrit Code Review gerrit@openafs.org
Mon, 18 Jul 2011 09:41:18 -0700 (PDT)


The following commit has been merged in the master branch:
commit 1ec64ba50ea8d691cfb126dd40a11370ed37b433
Author: Ben Kaduk <kaduk@mit.edu>
Date:   Sun Jul 17 16:24:12 2011 -0400

    libafs: switch to hardcoded source names with CRULE
    
    Most of the userspace tree uses AFS_CCRULE for how to compile
    things.  We cannot use this directly for libafs, since in the
    general case kernel and userland code may need to be treated
    with an entirely different compiler and compiler options.
    Switching libafs fully to a (e.g.) LIBAFS_CCRULE would be a substantial
    amount of work, and require a lot of testing.  However, we can
    stop passing -c $? (the out-of-date sources) in CRULE_{NO,}OPT
    and add the source file after each invocation of the CRULEs,
    an incremental step towards LIBAFS_CCRULE.
    This has the extra advantage of not causing issues when integrating
    with kernel module build systems that automatically add dependencies
    to all object file targets. (In such cases, $? expands to multiple files
    and 'gcc -o foo.o -c' bails out.)
    
    Most of this change was automatically generated from the following
    awk script:
    ==========
    /[a-zA-Z_0-9].o:/ {path=$2;}
    /^      \$\(CRULE_/ {print $0,path;}
    !/^     \$\(CRULE_/ {print;}
    ==========
    
    Change-Id: I22b8eeaee730feb37b2527d44d6548e7b13b9a0a
    Reviewed-on: http://gerrit.openafs.org/5040
    Tested-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementia.org>

 src/libafs/Makefile.common.in      |  332 ++++++++++++++++++------------------
 src/libafs/MakefileProto.DARWIN.in |    4 +-
 2 files changed, 168 insertions(+), 168 deletions(-)

-- 
OpenAFS Master Repository