Mattsa008 / pybox2d

Automatically exported from code.google.com/p/pybox2d
Other
0 stars 0 forks source link

Fix installation on x64-based Linux #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
According to the user the.trav:

"installing from the source package gave me an error when it got to the g++
stage

g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-x86_64-2.5/Box2D_wrap??.o -o Box2D2??.so
Gen/float/libbox2d.a /usr/bin/ld: Gen/float/libbox2d.a(b2Body.o):
relocation R_X86_64_32?? against `a local symbol' can not be used when
making a shared object; recompile with -fPIC Gen/float/libbox2d.a: could
not read symbols: Bad value collect2: ld returned 1 exit status error:
command 'g++' failed with exit status 1
"

Original issue reported on code.google.com by sir...@gmail.com on 18 Jun 2008 at 5:14

GoogleCodeExporter commented 8 years ago
Works with -fPIC. If the Makefile is changed from:
CXXFLAGS=  -g -O2
to:
CXXFLAGS+=  -g -O2

The environment's CXXFLAGS should be used. The appropriate changes were also 
made in
the setup.py to allow CXXFLAGS support (r47)

Original comment by sir...@gmail.com on 5 Sep 2008 at 1:40

GoogleCodeExporter commented 8 years ago

Original comment by sir...@gmail.com on 5 Sep 2008 at 1:40