To be able to successfully build Crystal Space on AMD64 architecture the flag "-fPIC" must be appended to CFLAGS/CXXFLAGS. To fix this bug this line should be added to the src_compile() function: [ "${ARCH}" = "amd64" ] && append-flags -fPIC This also requires that "flag-o-matic" is inherited. Of course the ~amd64 keyword should be added as well. Reproducible: Always Steps to Reproduce:
Created attachment 52974 [details, diff] Patch that appends -fPIC on amd64 The patch implements the proposed modifications.
fix it properly and we'll add amd64 support sticking -fPIC into CFLAGS is NOT the proper fix
*** Bug 95170 has been marked as a duplicate of this bug. ***
*** Bug 94541 has been marked as a duplicate of this bug. ***
Why is this bug marked "resolved invalid"? I still can't emerge crystalspace successfully! anyway: As upgrading to 2005.0 resolved the fPIC issue now there is an other issue. See # 94541. regards
read comment #2 ... just throwing -fPIC into CFLAGS/CXXFLAGS is incorrect
So what is the solution then? This bugs state is <b>_RESOLVED_</b> (invalid). If so just saying "fix it properly" resolves a bug?! Very interesting...