Fix --with-rpath and use it from preconfigure ##build

This commit is contained in:
pancake 2021-09-07 22:19:15 +02:00 committed by GitHub
parent c3293782c0
commit ef920b9a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View File

@ -74,9 +74,7 @@ EXT_EXE=.bc
#EXT_EXE=.wasm
endif
ifeq ($(USE_RPATH),1)
LDFLAGS+=-Wl,-rpath,"${LIBDIR}"
endif
LDFLAGS+=$(LDFLAGS_RPATH)
OBJ+=${BIN}.o
BEXE=${BIN}${EXT_EXE}

View File

@ -21,7 +21,9 @@ WANT_CAPSTONE=@WANT_CAPSTONE@
WITH_LIBR=@WITH_LIBR@
ifeq ($(USE_RPATH),1)
LDFLAGS_LIB+=-Wl,-rpath,"${LIBDIR}"
LDFLAGS_RPATH=-Wl,-rpath,"${LIBDIR}"
else
LDFLAGS_RPATH=
endif
MKPLUGINS=mk/stat.mk mk/sloc.mk

View File

@ -14,3 +14,8 @@ printf "[*] Checking out vector35... "
rm -rf libr/asm/arch/arm/v35arm64/arch-arm64
${MAKE} -C libr/asm/arch/arm/v35arm64 arch-arm64 > /dev/null || exit 1
echo OK
if [ `uname` = Linux ]; then
./configure --with-rpath
else
./configure
fi