Robert Connolly schreef:
> The "Use GCC option -fPIC for shared objects, please." is an error from
> uClibc
> (you can disable it, but it's not ideal).
>
> The 66_all_binutils-2.17.50.0.2-warn-textrel.patch, if it's the alt-linux
> patch, only warns for shared textrel at link time, but doesn't cause an
> error.
>
> I apologies for not getting this fixed. My day job is busy in the summer, I
> worked during my normal vacation time, so I haven't found the time. I'm still
> fairly sure this is from libssp_nonshared.a... it needs to be compiled
> with -fpic from the cocoon, and again in butterfly, so shared libraries can
> use it.
>
> I think -fpic should be added to libssp_nonshared.a, and libiberty, via the
> gcc-fpie patch. I vaguely remember getting around the libbfd.so error, and
> then getting another error when compiling gcc/xgcc, caused by libiberty.a.
>
> robert
>
> On Saturday July 28 2007 03:13:29 pm Rob van Dam wrote:
>
Hi Robert,
Don't worry I fully understand you are busy, and I am very happy you are
helping me. The patches are from Gentoo, and imho (as a non programmer)
they do what you describe. When I apply these patches I also get an
error in Gcc. Here is the text from the "pic" patch:
this will install a pic version of libiberty.a by overwriting the non-pic
version of libiberty.a while compiling
--- libiberty/Makefile.in
+++ libiberty/Makefile.in
@@ -224,6 +224,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA
$(AR) $(AR_FLAGS) $(TARGETLIB) \
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
$(RANLIB) $(TARGETLIB); \
+ cp $(TARGETLIB) ../ ; \
cd ..; \
else true; fi
Rob
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page