diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2018-10-25 17:39:41 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2018-10-25 17:39:41 +0000 |
commit | 31d62a73c2e6ac0ff413a7a17700ffc7dce254ef (patch) | |
tree | 8e38af4c0995bdf5f590fb13f735df0b9ff1a3d7 /gnu | |
parent | ad054101ebaa437404badd9cade3817a625f6a35 (diff) | |
download | src-test2-31d62a73c2e6ac0ff413a7a17700ffc7dce254ef.tar.gz src-test2-31d62a73c2e6ac0ff413a7a17700ffc7dce254ef.zip |
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
Notes
Notes:
svn path=/head/; revision=339738
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/lib/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
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 <src.opts.mk> -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 |