Commit 89ebf529 authored by Vladimír Čunát's avatar Vladimír Čunát

make: add -rpath only on non-Darwin POSIX

I didn't recall this doesn't work on Darwin.
parent 5d9295e0
Pipeline #11293 canceled with stages
in 28 seconds
......@@ -28,7 +28,7 @@ XXD_LUA := ./scripts/embed-lua.sh
INSTALL := install
# Flags
BUILD_LDFLAGS += "-Wl,-rpath=$(LIBDIR)" $(LDFLAGS)
BUILD_LDFLAGS += $(LDFLAGS)
BUILD_CFLAGS := $(CFLAGS) -std=c99 -D_GNU_SOURCE -Wno-unused -Wtype-limits -Wformat -Wformat-security -Wall -I$(abspath .) -I$(abspath lib/generic) -I$(abspath contrib) -I$(abspath contrib/lmdb)
BUILD_CFLAGS += -DPACKAGE_VERSION="\"$(VERSION)\"" -DPREFIX="\"$(PREFIX)\"" -DMODULEDIR="\"$(MODULEDIR)\""
ifeq (,$(findstring -O,$(CFLAGS)))
......
......@@ -43,7 +43,7 @@ else
SOVER = $(if $(1), -compatibility_version $(2) -current_version $(1),)
else
PLATFORM := POSIX
LDFLAGS += -pthread -lm -Wl,-E
LDFLAGS += -pthread -lm -Wl,-E "-Wl,-rpath=$(LIBDIR)"
# ELF hardening options
ifneq ($(HARDENING),no)
BINFLAGS += -pie
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment