Author Topic: PIC flags in configure  (Read 5219 times)

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
PIC flags in configure
« 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)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: PIC flags in configure
« Reply #1 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?
Be patient!
This bug will be fixed soon...

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: PIC flags in configure
« Reply #2 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

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: PIC flags in configure
« Reply #3 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.