This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Why -prefer-pic?
- To: libstdc++ at sources dot redhat dot com
- Subject: Why -prefer-pic?
- From: Laurynas Biveinis <lauras at softhome dot net>
- Date: Fri, 08 Dec 2000 22:01:20 +0100
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