https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63784
H.J. Lu hjl.tools at gmail dot com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63784
--- Comment #7 from hjl at gcc dot gnu.org hjl at gcc dot gnu.org ---
Author: hjl
Date: Fri Nov 21 16:49:17 2014
New Revision: 217937
URL: https://gcc.gnu.org/viewcvs?rev=217937root=gccview=rev
Log:
Always use PIC option with -shared in libtool
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63784
--- Comment #6 from H.J. Lu hjl.tools at gmail dot com ---
Created attachment 33931
-- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33931action=edit
A testcase
[hjl@gnu-6 pr63784]$ make
./libtool --tag=CXX --mode=compile
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63784
--- Comment #5 from H.J. Lu hjl.tools at gmail dot com ---
A patch is posted at
https://gcc.gnu.org/ml/gcc-patches/2014-11/msg00737.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63784
H.J. Lu hjl.tools at gmail dot com changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63784
--- Comment #2 from H.J. Lu hjl.tools at gmail dot com ---
We have a few choices:
1. Build libcc1 with LTO when GCC is configured with
--with-build-config=bootstrap-lto. Or
2. Teach libtool to always add -fPIC when linking shared
object to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63784
--- Comment #3 from H.J. Lu hjl.tools at gmail dot com ---
This part:
@@ -4451,7 +4452,7 @@ _LT_EOF
if $LD --help 21 | $EGREP ': supported targets:.* elf' /dev/null \
test $tmp_diet = no
then
-tmp_addflag=
+
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63784
H.J. Lu hjl.tools at gmail dot com changed:
What|Removed |Added
CC||markus at