Why -prefer-pic?

Laurynas Biveinis lauras@softhome.net
Fri Dec 8 12:01:00 GMT 2000


Can somebody explain, why libsupc++\Makefile.am uses -prefer-pic
flag?
---
# Flags to force separate libtool library to be static only.
LIBTOOL = @LIBTOOL@ --tag disable-shared
LIBSUPCXX_CXXFLAGS = -prefer-pic
---
Under DJGPP it causes problems: it forces -fPIC -DPIC for static
libraries. But we don't support shared libraries, and -fPIC makes
us crash there. Why you're using PIC for static libs too? Can it
be removed?

TIA and please CC: on replies,
Laurynas


More information about the Libstdc++ mailing list