[bootstrap 1.1.1 on Solaris 2.6] incorrect PIC options fed to cc

Jeffrey A Law law@cygnus.com
Sun Dec 13 00:36:00 GMT 1998


  In message < 13935.42777.949874.500503@sls5gj.stgl.sel.alcatel.de >you write:
  > Hmm, looks like nobody tried to build this combination using cc before...
  > 
  > How about this:
  > 
  > PICFLAG=`case "${LIBCFLAGS} ${LIBCXXFLAGS}" in *-fpic* ) if test ${CC} = cc
  > ; then echo -Kpic; else echo -fpic; fi ;; * ) if test ${CC} = cc; then echo
  >  -KPIC; else echo -fPIC; fi ;; esac`
  > 
  > Pooh, it's getting uglier every day ... :-(
Or just ignore the --enable-shared stuff when building for the host.

Hmmm, I wonder what effect that would have in a single tree build....  In
particular on stuff like libbfd & other host libs we can build as shared
libraries.

The other approach might be to libtool-ize libiberty.  I think it knows how
to handle these issues.

jeff



More information about the Gcc-bugs mailing list