From 31d62a73c2e6ac0ff413a7a17700ffc7dce254ef Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 25 Oct 2018 17:39:41 +0000 Subject: Implement a BSD licensed crtbegin/crtend These are needed for .ctors/.dtors and .jcr handling. The former needs all the function pointers to be called in the correct order from the .init/.fini section. The latter just needs to call a gcj specific function if it exists with a pointer to the start of the .jcr section. This is currently disabled until __dso_handle support is added. Reviewed by: emaste MFC after: 1 month Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17587 --- gnu/lib/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile index 5daba7518af0..6dbef4d4065b 100644 --- a/gnu/lib/Makefile +++ b/gnu/lib/Makefile @@ -2,12 +2,16 @@ .include -SUBDIR= csu +SUBDIR= SUBDIR.${MK_DIALOG}+= libdialog SUBDIR.${MK_GCC}+= libgcov libgomp SUBDIR.${MK_SSP}+= libssp SUBDIR.${MK_TESTS}+= tests +.if ${MK_BSD_CRTBEGIN} == "no" +SUBDIR+= csu +.endif + .if ${MK_GNU_GREP} != "no" || ${MK_GNU_GREP_COMPAT} != "no" || \ ${MK_GDB} != "no" SUBDIR+= libregex -- cgit v1.2.3