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)

Library.mak.patch (366 bytes ) - added by jng 10 years ago.
Add -fPIC flag for x64 builds

Download all attachments as: .zip

Change History (3)

by jng, 10 years ago

Attachment: Library.mak.patch added

Add -fPIC flag for x64 builds

comment:1 by jng, 10 years ago

Cc: Norm Olsen 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 Norm Olsen, 10 years ago

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.