Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/lib/libgcc3 Build the -fPIC exception handling objects w...



details:   https://anonhg.NetBSD.org/src/rev/40bd5c972353
branches:  trunk
changeset: 559707:40bd5c972353
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Mar 22 17:08:23 2004 +0000

description:
Build the -fPIC exception handling objects with the right flags, e.g.
-fexceptions and link the shared library with the standard startup files.

diffstat:

 gnu/lib/libgcc3/Makefile.inc      |  10 +++++++++-
 gnu/lib/libgcc3/libgcc_s/Makefile |   4 ++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r 07d3ecc8c202 -r 40bd5c972353 gnu/lib/libgcc3/Makefile.inc
--- a/gnu/lib/libgcc3/Makefile.inc      Mon Mar 22 17:02:57 2004 +0000
+++ b/gnu/lib/libgcc3/Makefile.inc      Mon Mar 22 17:08:23 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.4 2004/03/22 17:02:57 skrll Exp $
+#      $NetBSD: Makefile.inc,v 1.5 2004/03/22 17:08:23 skrll Exp $
 
 .if exists(${.CURDIR}/arch/${MACHINE_ARCH}.mk) && ${MKGCC} != "no"
 .include "${.CURDIR}/arch/${MACHINE_ARCH}.mk"
@@ -76,10 +76,18 @@
        ${_MKTARGET_COMPILE}
        ${COMPILE.c} -fexceptions -o ${.TARGET} ${.IMPSRC}
 
+${LIB2_EH:.c=.so}:
+       ${_MKTARGET_COMPILE}
+       ${COMPILE.c} ${CPICFLAGS} -fexceptions -o ${.TARGET} ${.IMPSRC}
+
 ${G_LIB2_DIVMOD_FUNCS:=.o}:
        ${_MKTARGET_COMPILE}
        ${COMPILE.c} -fexceptions -fnon-call-exceptions -o ${.TARGET} ${.IMPSRC}
 
+${G_LIB2_DIVMOD_FUNCS:=.so}:
+       ${_MKTARGET_COMPILE}
+       ${COMPILE.c} ${CPICFLAGS} -fexceptions -fnon-call-exceptions -o ${.TARGET} ${.IMPSRC}
+
 dp-bit.c: ${.CURDIR}/Makefile
        ${_MKTARGET_CREATE}
        printf '#define FLOAT\n#include <fp-bit.c>\n' >${.TARGET}
diff -r 07d3ecc8c202 -r 40bd5c972353 gnu/lib/libgcc3/libgcc_s/Makefile
--- a/gnu/lib/libgcc3/libgcc_s/Makefile Mon Mar 22 17:02:57 2004 +0000
+++ b/gnu/lib/libgcc3/libgcc_s/Makefile Mon Mar 22 17:08:23 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2004/03/08 14:47:27 skrll Exp $
+#      $NetBSD: Makefile,v 1.5 2004/03/22 17:08:23 skrll Exp $
 
 REQUIRETOOLS=  yes
 NOLINT=                # defined
@@ -20,7 +20,7 @@
 SHLIB_MAJOR=   1
 SHLIB_MINOR=   0
 
-LDFLAGS+=      -nostdlib
+LDFLAGS+=      -nodefaultlibs
 #LDFLAGS+=     -Wl,--version-script=${DIST}/libgcc/libgcc.map
 
 SRCS+=         ${LIB2FUNCS} ${LIB2DIVMOD} ${LIB2_EH} \



Home | Main Index | Thread Index | Old Index