On 09/11/13 05:21, Stuart Henderson wrote:
On 2013/09/11 12:06, niXman wrote:
2013/9/11 Stuart Henderson
The error message gives quite a good clue:

relocation R_X86_64_32 can not be used when making a shared object; recompile 
with -fPIC
Maybe, but it doesn't speak to me about anything. Can you help me?
"recompile with -fPIC" seems clear to me. If this doesn't mean anything
to you, I don't think you should be trying to port GCC by yourself.


As Marc said, use the port.  I think you have something of a learning
curve here, and starting with something like the port is a great idea.
Marc et al have put in hordes of time on GCC.  You want to really
learn it--fine!  But start upon the work of others, so you can see how
it integrates into OpenBSD, and how it is built.  The port is a great
example (probably the best there is) as to how to do this.

I think you need to over what Makefiles are, and the whole GNU build
system.  You have a complex thing to study, but if you take it apart
you'll see how something that works was created.

Lastly, you might look at a more simple port first, to see how that
works.  I daresay GCC is in the top 5% of ports, in terms of complexity.

--STeve Andre'



Reply via email to