Skip to content

Commit

Permalink
c18n: Add -DCHERI_LIB_C18N to CFLAGS for everything in lib/c18n
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgao committed Sep 8, 2024
1 parent c1d42dc commit a86c9e4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
2 changes: 2 additions & 0 deletions lib/c18n/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ CHERI_LIB_C18N=yes
SHLIBDIR= /usr/lib${COMPAT_libcompat:U}/c18n
LIBDIR= /usr/lib${COMPAT_libcompat:U}/c18n

CFLAGS+=-DCHERI_LIB_C18N

.include "../Makefile.inc"
4 changes: 0 additions & 4 deletions lib/libc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ CANCELPOINTS_CFLAGS=-fexceptions
CFLAGS+=${CANCELPOINTS_CFLAGS}
.endif

.ifdef CHERI_LIB_C18N
CFLAGS+=-DCHERI_LIB_C18N
.endif

# Use a more efficient TLS model for libc since we can reasonably assume that
# it will be loaded during program startup.
CFLAGS+= -ftls-model=initial-exec
Expand Down
4 changes: 0 additions & 4 deletions lib/libsys/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ PRECIOUSLIB=
# it will be loaded during program startup.
CFLAGS+= -ftls-model=initial-exec

.ifdef CHERI_LIB_C18N
CFLAGS+=-DCHERI_LIB_C18N
.endif

#
# Link with static libcompiler_rt.a.
#
Expand Down
4 changes: 0 additions & 4 deletions lib/libthr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ CFLAGS+=-fexceptions
CFLAGS+=-D_PTHREAD_FORCED_UNWIND
.endif

.ifdef CHERI_LIB_C18N
CFLAGS+=-DCHERI_LIB_C18N
.endif

LDFLAGS+=-Wl,-znodelete
LDFLAGS+=-Wl,--auxiliary,libsys.so.7

Expand Down

0 comments on commit a86c9e4

Please sign in to comment.