Use private keyword on makefile target variables

This commit is contained in:
Justine Tunney 2022-08-10 18:00:45 -07:00
parent e015defa70
commit 7b993d561c
71 changed files with 305 additions and 314 deletions

View file

@ -53,20 +53,20 @@ $(THIRD_PARTY_DLMALLOC_A).pkg: \
# README file recommends -O3
# It does double performance in default mode
o//third_party/dlmalloc/dlmalloc.o \
o/rel/third_party/dlmalloc/dlmalloc.o: \
o/rel/third_party/dlmalloc/dlmalloc.o: private \
OVERRIDE_CFLAGS += \
-O3
# we can't use address sanitizer because:
# address sanitizer depends on dlmalloc
o/$(MODE)/third_party/dlmalloc/dlmalloc.o: \
o/$(MODE)/third_party/dlmalloc/dlmalloc.o: private \
OVERRIDE_CFLAGS += \
-ffreestanding \
-fno-sanitize=address
# we must segregate codegen because:
# file contains multiple independently linkable apis
o/$(MODE)/third_party/dlmalloc/dlmalloc.o: \
o/$(MODE)/third_party/dlmalloc/dlmalloc.o: private \
OVERRIDE_CFLAGS += \
-ffunction-sections \
-fdata-sections