add lib prefix to the shared object name
This commit is contained in:
parent
11fe467b7c
commit
9fd0670aac
4
Makefile
4
Makefile
@ -79,7 +79,7 @@ CPPFLAGS += \
|
||||
-DREGION_QUARANTINE_SKIP_THRESHOLD=$(CONFIG_REGION_QUARANTINE_SKIP_THRESHOLD) \
|
||||
-DFREE_SLABS_QUARANTINE_RANDOM_SIZE=$(CONFIG_FREE_SLABS_QUARANTINE_RANDOM_SIZE)
|
||||
|
||||
hardened_malloc.so: $(OBJECTS)
|
||||
libhardened_malloc.so: $(OBJECTS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@
|
||||
|
||||
chacha.o: chacha.c chacha.h util.h
|
||||
@ -94,6 +94,6 @@ tidy:
|
||||
clang-tidy $(TIDY_CHECKS) $(SOURCES) -- $(CPPFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f hardened_malloc.so $(OBJECTS)
|
||||
rm -f libhardened_malloc.so $(OBJECTS)
|
||||
|
||||
.PHONY: clean tidy
|
||||
|
@ -2,5 +2,5 @@
|
||||
|
||||
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
[[ $LD_PRELOAD ]] && LD_PRELOAD+=" "
|
||||
export LD_PRELOAD+="$dir/hardened_malloc.so"
|
||||
export LD_PRELOAD+="$dir/libhardened_malloc.so"
|
||||
exec "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user