tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: Linking libc into shared libarries (was: CVS commit: src/share/mk)
> not in the linker..but see what other systems do with "gcc -shared"?
Something like the attached (untested)?
does it turn it off with -nostdlib etc? that was the only thing
i thought ove to check for.
Nick
(-posix/-pthread with -p or -pg and -shared looks wrong to me)
i've noticed those. someone (tm) should investgate that...
--Boundary-00=_2WEFI/AMIfM0zPr
Content-Type: text/x-diff;
charset="iso-8859-1";
name="specs.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="specs.diff"
Index: gnu/dist/gcc4/gcc/config/netbsd.h
===================================================================
RCS file: /cvsroot/src/gnu/dist/gcc4/gcc/config/netbsd.h,v
retrieving revision 1.5
diff -u -p -u -r1.5 netbsd.h
--- gnu/dist/gcc4/gcc/config/netbsd.h 13 May 2006 01:48:14 -0000
1.5
+++ gnu/dist/gcc4/gcc/config/netbsd.h 27 Apr 2008 09:20:09 -0000
@@ -116,6 +116,7 @@ Boston, MA 02110-1301, USA. */
%{!pg:-lposix}} \
%{p:-lposix_p} \
%{pg:-lposix_p}} \
+ %{shared: -lc} \
%{!shared: \
%{!symbolic: \
%{!p: \
@@ -129,6 +130,7 @@ Boston, MA 02110-1301, USA. */
%{!pg:-lposix}} \
%{p:-lposix_p} \
%{pg:-lposix_p}} \
+ %{shared: -lc} \
%{!shared: \
%{!symbolic: \
%{!p: \
--Boundary-00=_2WEFI/AMIfM0zPr--
Home |
Main Index |
Thread Index |
Old Index