On Sat, May 05, 2007, Ralf S. Engelschall wrote: > On Sat, May 05, 2007, Christoph Schug wrote: > > > sparc64-freebsd platform fixes > > Christoph, as it seems to be a generic PIC issue, wouldn't it be more > reasonable to fixate to PIC building directly via rpmtool as we are > already doing for amd64-freebsd? Because I'm sure these are not the only > libraries which are affected...
Yeah, I had a similar idea but wasn't aware of the rpmtool(8) hack. I'm not completely satisfied with the way it is done in rpmtool(8) also as '-fPIC' is being set always, even if not necessary. While vendor compiler on FreeBSD is always gcc(1) there might be other platforms in the future were this isn't the case. Wouldn't it be better to introduce an additional macro which defaults to '%nil' and expands to '-fPIC' on specific cases? Nevertheless I consider this commit as a quick hackish solution just to get a step forword and to evaluate whether sparc64-freebsd might be a suitable platform for OpenPKG stuff. Sorry for the mess, should I back out the change? -cs ______________________________________________________________________ OpenPKG http://openpkg.org Developer Communication List openpkg-dev@openpkg.org