Opened 12 years ago
Closed 10 years ago
#158 closed defect (fixed)
-fPIC compiler flag required for 64-bit linux builds
Reported by: | jng | Owned by: | hugueswski |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Library | Version: | |
Keywords: | Cc: | Norm Olsen |
Description
Attempting to build mapguide on 64-bit linux fails when libMgGeometry tries to link to CS-Map because libMgGeometry is being built with -fPIC in its CXXFLAGS
Currently, I'm using a sed-based workaround in the MapGuide build scripts so that this necessary flag is injected into Library.mak for 64-bit linux builds of CS-Map, but it would be nice if there's a CS-Map level solution
Attachments (1)
Change History (3)
by , 10 years ago
Attachment: | Library.mak.patch added |
---|
comment:1 by , 10 years ago
Cc: | added |
---|
Although the trunk Library.mak now makes a distinction between x86 and x64 builds, the x64 builds still suffer from this problem due to lack of -fPIC in the C_FLG and CXX_FLG
In my continued quest for a working 64-bit Linux build of MapGuide, we need CS-Map in 64-bit Linux to be built with -fPIC to avoid relocation linker errors.
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Corrected at revision 2489. The suggested fix was expanded beyond the Library build to include the entire build process. In so doing, a flaw in the make file design was discovered and is also corrected in this revision.
Add -fPIC flag for x64 builds