Skip to content

Commit b029543

Browse files
Release: Do relative rpaths only on Linux
Relative rpaths option uses patchelf, which is not available on macOS. Signed-off-by: Anton Kolesov <[email protected]>
1 parent d97cd5d commit b029543

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

release.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,14 @@ endef
202202
# Build flags common to all toolchains
203203
#
204204

205-
BUILDALLFLAGS := --disable-werror --strip --rel-rpaths --no-auto-pull \
205+
BUILDALLFLAGS := --disable-werror --strip --no-auto-pull \
206206
--no-auto-checkout --elf32-strip-target-libs
207207

208+
# Relative paths require patchelf, not present on macOS.
209+
ifneq ($(HOST),macos)
210+
BUILDALLFLAGS += --rel-rpaths
211+
endif
212+
208213
EXTRA_CONFIG_FLAGS += --with-python=no
209214
ifeq ($(CONFIG_STATIC_TOOLCHAIN),y)
210215
EXTRA_CONFIG_FLAGS += LDFLAGS=-static

0 commit comments

Comments
 (0)