From b740f28904571727f967021e3fe40133decf4659 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Thu, 30 Jul 2009 10:58:55 +0200 Subject: [PATCH] libc: link with -nodefaultlibs -lgcc instead of -nolibc The -nolibc flag is a proprietary DragonFly construct, which is only used by libc. It is unnecessary, because the same behavior can be achieved by specifying -nodefaultslibs -lgcc for linking. --- lib/libc/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libc/Makefile b/lib/libc/Makefile index ac3cb2afc6..e172195a66 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -13,7 +13,10 @@ CFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS -I${.CURDIR}/include ${AINC} AINC= -I${.OBJDIR} -I${.CURDIR}/${MACHINE_ARCH} CLEANFILES+=tags PRECIOUSLIB= yes -LDADD= -nolibc + +DPADD+= ${LIBGCC} +LDFLAGS+= -nodefaultlibs +LDADD+= -lgcc # # Include make rules that are shared with libc_r. -- 2.41.0