-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libsys: Add CHERI_LIB_C18N to CFLAGS when appropriate
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,10 @@ PRECIOUSLIB= | |
# it will be loaded during program startup. | ||
CFLAGS+= -ftls-model=initial-exec | ||
|
||
.ifdef CHERI_LIB_C18N | ||
CFLAGS+=-DCHERI_LIB_C18N | ||
.endif | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bsdjhb
Collaborator
|
||
# | ||
# Link with static libcompiler_rt.a. | ||
# | ||
|
This is fine, but a better solution might be to add the CFLAGS entry to lib/c18n/Makefile.inc and remove this block from lib/lib{c,thr}/Makefile