Project

General

Profile

Actions

Emulator Issues #948

closed

64-bit Linux version needs -fPIC to compile. Intended?

Added by airmaker90 about 15 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?

  1. Try to compile for 64-bit Linux without changing settings (rev. 3198)

Error message when trying to link:

/usr/bin/ld: Build/Linux-x86_64-release/libs/libsoil.a(SOIL.o): relocation
R_X86_64_32S against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
Build/Linux-x86_64-release/libs/libsoil.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
scons: *** [Binary/Linux-x86_64/Plugins/libPlugin_VideoOGL.so] Error 1
scons: building terminated because of errors.
==> ERROR: Build Failed.
Aborting...

GCC 4.4.0 - Fully updated Arch Linux x86_64
It compiles fine on 32-bit

It compiles fine on 32-bit with only the -march=i486 in compile flags.
64-bit compiles fine with -fPIC though.

Actions #1

Updated by nakeee about 15 years ago

I added it to CXXFlags instead of CCFlags
Fixed now.

Actions #2

Updated by Anonymous about 13 years ago

  • Status changed from New to Fixed

Ignore this...Status:Verified was removed, changing to Fixed

Actions

Also available in: Atom PDF