[OpenAFS-devel] Re: [RFC] splitting out CRULE_TARGET from libafs/Makefile.common

Russ Allbery rra@stanford.edu
Mon, 27 Jun 2011 10:40:54 -0700


Andrew Deason <adeason@sinenomine.net> writes:

> I don't see it on amd64 buildbots on all invocations:

> gcc   -O   -I/home/buildbot/slave1/rhel6-x86_64-builder/build/src/config
> -I/home/buildbot/slave1/rhel6-x86_64-builder/build/include -I. -I.
> -DRXDEBUG -DFSSYNC_BUILD_SERVER -DSALVSYNC_BUILD_CLIENT
> -DAFS_DEMAND_ATTACH_FS -pthread -D_REENTRANT -DAFS_PTHREAD_ENV  -o
> afsfileprocs.o -c ./../viced/afsfileprocs.c

Ah, because Makefile.pthread uses a different generic target that doesn't
use CCOBJ and instead uses MT_CC, which isn't set separately for amd64.
So we're adding -fPIC to everything except things that are built
pthreaded, except for the pthreaded shared libraries, where we're adding
it back in.  Lovely.

Our build system is a rat's nest.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>