diff options
author | obrien <obrien@FreeBSD.org> | 2001-01-06 06:16:31 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-01-06 06:16:31 +0000 |
commit | 9ecd859376ab3bec2331158e58d250fb62910430 (patch) | |
tree | 966ba0f8d5c8bae60e363d5ac757b997bd3a33d7 /gnu/lib/libgcc/Makefile | |
parent | 7de31c3e1c7d8c876eb8490a93e2583b1554600a (diff) | |
download | FreeBSD-src-9ecd859376ab3bec2331158e58d250fb62910430.zip FreeBSD-src-9ecd859376ab3bec2331158e58d250fb62910430.tar.gz |
Use a unified libgcc rather than a seperate one for threaded and
non-threaded programs. This provides threaded programs with the
needed exception frame symbols.
parts submitted by: Max Khon <fjoe@iclub.nsu.ru>
PR: 23252
Diffstat (limited to 'gnu/lib/libgcc/Makefile')
-rw-r--r-- | gnu/lib/libgcc/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile index a9842a0..a16558a 100644 --- a/gnu/lib/libgcc/Makefile +++ b/gnu/lib/libgcc/Makefile @@ -4,12 +4,15 @@ GCCDIR= ${.CURDIR}/../../../contrib/gcc.295 .PATH: ${GCCDIR}/cp ${GCCDIR} +# allow to be overridden for the a.out case .if !defined(LIB) || ${LIB} != "gcc_r" LIB= gcc .endif +.if ${OBJFORMAT} == aout # Install libgcc_pic.a, since ld.so uses it. INSTALL_PIC_ARCHIVE= yes +.endif # # XXX This is a hack, but it seems to work. libgcc1.a is supposed to be @@ -59,6 +62,10 @@ SRCS= frame.c tinfo.cc tinfo2.cc new.cc exception.cc CFLAGS+= -I${GCCDIR}/config -I${GCCDIR} -I. CFLAGS+= -fexceptions CFLAGS+= -DIN_GCC +.if ${OBJFORMAT} != aout +#CFLAGS+= -D_PTHREADS -fPIC -DGTHREAD_USE_WEAK +CFLAGS+= -D_PTHREADS -DGTHREAD_USE_WEAK +.endif CXXFLAGS+= -I${GCCDIR}/cp/inc CXXFLAGS+= -nostdinc++ |