1.include "../Makefile.inc" 2.PATH: ${GCCDIR}/libgcc 3.PATH: ${GCCDIR}/libgcc/config/i386 4 5LIB= gcc_eh 6 7# this is a special case 8NOSHARED= YES 9 10# XXX gcc50 libgcc_eh.a was not using -fpic 11CFLAGS+= -fpic 12 13CFLAGS+= -I${.CURDIR} 14CFLAGS+= -I${.OBJDIR} 15CFLAGS+= -I${GCCDIR}/libgcc 16CFLAGS+= -I../csu 17CFLAGS+= -fbuilding-libgcc 18CFLAGS+= -fno-stack-protector 19CFLAGS+= -fexceptions 20CFLAGS+= -fvisibility=hidden 21CFLAGS+= -DIN_GCC 22CFLAGS+= -DIN_LIBGCC2 23CFLAGS+= -DHAVE_CC_TLS 24CFLAGS+= -DHIDE_EXPORTS 25 26# for now do not let the use of -flto 27.if ${CFLAGS:M-flto} 28CFLAGS+= -fno-lto 29LDFLAGS+= -flto 30.endif 31 32# LIB2ADDEH, gcc/Makefile 33SRCS+= unwind-dw2.c \ 34 unwind-dw2-fde-dip.c \ 35 unwind-sjlj.c \ 36 unwind-c.c \ 37 emutls.c 38 39# generated sources 40SRCS+= unwind.h md-unwind-support.h gthr-default.h 41 42unwind.h: unwind-generic.h 43 cp ${.ALLSRC} ${.TARGET} 44 45md-unwind-support.h: dragonfly-unwind.h 46 cp ${.ALLSRC} ${.TARGET} 47 48gthr-default.h: gthr-posix.h 49 cp ${.ALLSRC} ${.TARGET} 50 51auto-target.h: ${.CURDIR}/../libgcc/auto-target.h 52 cp ${.ALLSRC} ${.TARGET} 53 54CLEANFILES+= unwind.h md-unwind-support.h gthr-default.h auto-target.h 55 56beforedepend: auto-target.h 57 58.include <bsd.lib.mk> 59