mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
mkosi: Use clang --print-runtime-dir
(cherry picked from commit 6e212a6db9
)
This commit is contained in:
parent
8b859fa29d
commit
367ad876a6
@ -28,7 +28,7 @@ fi
|
||||
|
||||
MKOSI_LDFLAGS=""
|
||||
if ((LLVM)) && [[ -n "$SANITIZERS" ]]; then
|
||||
MKOSI_LDFLAGS="$MKOSI_LDFLAGS -Wl,-rpath=$(clang --print-file-name="")lib/linux"
|
||||
MKOSI_LDFLAGS="$MKOSI_LDFLAGS -Wl,-rpath=$(realpath "$(clang --print-runtime-dir)")"
|
||||
fi
|
||||
|
||||
MKOSI_MESON_OPTIONS="-D mode=developer -D b_sanitize=${SANITIZERS:-none}"
|
||||
|
@ -56,7 +56,7 @@ fi
|
||||
|
||||
MKOSI_LDFLAGS=""
|
||||
if ((LLVM)) && [[ -n "$SANITIZERS" ]]; then
|
||||
MKOSI_LDFLAGS="$MKOSI_LDFLAGS -Wl,-rpath=$(dirname "$(clang --print-file-name=libclang_rt.asan.so)")"
|
||||
MKOSI_LDFLAGS="$MKOSI_LDFLAGS -Wl,-rpath=$(realpath "$(clang --print-runtime-dir)")"
|
||||
fi
|
||||
|
||||
MKOSI_MESON_OPTIONS="-D mode=developer -D b_sanitize=${SANITIZERS:-none}"
|
||||
|
@ -48,7 +48,7 @@ fi
|
||||
|
||||
MKOSI_LDFLAGS=""
|
||||
if ((LLVM)) && [[ -n "$SANITIZERS" ]]; then
|
||||
MKOSI_LDFLAGS="$MKOSI_LDFLAGS -Wl,-rpath=$(clang --print-file-name="")lib/linux"
|
||||
MKOSI_LDFLAGS="$MKOSI_LDFLAGS -Wl,-rpath=$(realpath "$(clang --print-runtime-dir)")"
|
||||
fi
|
||||
|
||||
MKOSI_MESON_OPTIONS="-D mode=developer -D b_sanitize=${SANITIZERS:-none}"
|
||||
|
@ -51,7 +51,7 @@ fi
|
||||
|
||||
MKOSI_LDFLAGS="$(rpm --eval "%{?build_ldflags}")"
|
||||
if ((LLVM)) && [[ -n "$SANITIZERS" ]]; then
|
||||
MKOSI_LDFLAGS="$MKOSI_LDFLAGS -Wl,-rpath=$(clang --print-file-name="")lib/linux"
|
||||
MKOSI_LDFLAGS="$MKOSI_LDFLAGS -Wl,-rpath=$(realpath "$(clang --print-runtime-dir)")"
|
||||
fi
|
||||
|
||||
# A macro can't have an empty body and currently opensuse does not specify any of its own linker flags so
|
||||
|
Loading…
Reference in New Issue
Block a user