Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: afb on November 25, 2006, 11:03:55 am

Title: PIC flags in configure
Post by: afb on November 25, 2006, 11:03:55 am
Which platforms needs the PIC flags hardcoded like this ?
Code
CXXFLAGS="$CXXFLAGS $PCH_FLAGS -fPIC -DPIC"

On Mac OS X -fPIC is the default anyway, and on Linux (Fedora)
I get both flags twice (once from autoconf and once hardcoded)
Title: Re: PIC flags in configure
Post by: mandrav on November 25, 2006, 12:16:12 pm
Hmm, it doesn't appear twice for files in sdk/scripting but it does for sdk/*. Will you have a look at the Makefile.am files and see what's different?
Title: Re: PIC flags in configure
Post by: afb on November 25, 2006, 12:50:51 pm
Will do.

BTW: the main reason for looking into this is that -fPIC breaks the build on Solaris
Title: Re: PIC flags in configure
Post by: afb on November 25, 2006, 02:41:06 pm
Hmm, it doesn't appear twice for files in sdk/scripting but it does for sdk/*. Will you have a look at the Makefile.am files and see what's different?

On Fedora it appears twice for both.