add lib prefix to the shared object name

This commit is contained in:
Daniel Micay 2018-12-05 02:05:37 -05:00
parent 11fe467b7c
commit 9fd0670aac
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 "$@"