relocation R_X86_64_32 can not be used (Was: Re: (no subject))

Sean McNeil sean at mcneil.com
Tue Apr 11 19:20:38 UTC 2006


On Tue, 2006-04-11 at 12:11 -0700, Steve Kargl wrote:
> On Tue, Apr 11, 2006 at 03:07:08PM -0300, Marc G. Fournier wrote:
> > On Mon, 10 Apr 2006, Steve Kargl wrote:
> > 
> > >>cc -c -I/usr/include -static  -DNO_IDEA memory.c
> > >>cc -shared -o common.o stream.o registry.o config.o memory.o
> > >    ^^^^^^^
> > >
> > >This isn't -static.
> > 
> > You said to add it to CFLAGS ... which variable defines -shared vs 
> > -static?
> > 
> 
> It appears the resin port doesn't use CFLAGS when cc is used
> as the loader.  I admit I forgot the other solution of adding
> -fPIC to generate the needed symbols.

Typically, *FLAGS depend on what you are doing:

CFLAGS		object files from C source
CXXFLAGS	object files from C++ source
CPFLAGS		C/C++ preprocessing. Sometimes added to above
LDFLAGS		executable from object files

This has been a pretty consistent rule from what I've seen.

So I would think the -shared is in his LDFLAGS.

Cheers,
Sean




More information about the freebsd-ports mailing list