This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Why -prefer-pic?



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]