PATCH: V3 configury, again

Mark Mitchell mark@codesourcery.com
Wed Jan 24 08:32:00 GMT 2001


>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:

    Alexandre> This is wrong.  We do want libtool to compile libsupc++
    Alexandre> with -fPIC, so that the object files can be included in
    Alexandre> shared library.

Apparently not we still *do* use -fPIC.  Here's GNU/Linux output from
`libtool --tag CXX --tag --disable-shared' for a configure with no
options on i686-pc-linux-gnu:

  /mnt/u2/mitchell/dev/gcc-3/objdir/gcc/g++
  -B/mnt/u2/mitchell/dev/gcc-3/objdir/gcc/ -nostdinc++
  -L/mnt/u2/mitchell/dev/gcc-3/objdir/i686-pc-linux-gnu/libstdc++-v3/src
  -L/mnt/u2/mitchell/dev/gcc-3/objdir/i686-pc-linux-gnu/libstdc++-v3/src/.libs
  -B/usr/local/i686-pc-linux-gnu/bin/
  -B/usr/local/i686-pc-linux-gnu/lib/ -isystem
  /usr/local/i686-pc-linux-gnu/include -I../../../../libstdc++-v3/../gcc
  -I../../../../libstdc++-v3/../include
  -I../../../../libstdc++-v3/include
  -I../../../../libstdc++-v3/include/std
  -I../../../../libstdc++-v3/include/c_std -I../include
  -I../../../../libstdc++-v3/libsupc++ -fno-implicit-templates -Wall
  -Wno-format -W -Wwrite-strings -Winline
  -fdiagnostics-show-location=once -ffunction-sections -fdata-sections
  -g -c ../../../../libstdc++-v3/libsupc++/vec.cc  -fPIC -DPIC -o vec.o

There's no resaon that PIC-ness should be tied to archive-ness.
	
--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


More information about the Libstdc++ mailing list