From a17c5e30b7a1bc0c64132ea5aef9239939c092c1 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 23 Sep 2019 12:17:12 +0200 Subject: [PATCH] mk/gnu_build.mk: avoid absolute lib paths This patch changes the way how libraries are specified at the linker command line from /abs/path/to/library.lib.so Issue #3500 --- repos/ports/mk/gnu_build.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/ports/mk/gnu_build.mk b/repos/ports/mk/gnu_build.mk index 035c57b78..947e087e6 100644 --- a/repos/ports/mk/gnu_build.mk +++ b/repos/ports/mk/gnu_build.mk @@ -126,8 +126,8 @@ CXXFLAGS += $(COMMON_CFLAGS_CXXFLAGS) # in all cases because 'libtool' strips those arguments from the 'LIBS' variable. # LDLIBS_A = $(filter %.a, $(sort $(STATIC_LIBS)) $(EXT_OBJECTS) $(LIBGCC)) -LDLIBS_SO = $(addprefix $(PWD)/,$(sort $(SHARED_LIBS))) -LDLIBS += $(LDLIBS_A) $(LDLIBS_SO) $(LDLIBS_A) +LDLIBS_SO = $(addprefix -l:,$(sort $(SHARED_LIBS))) +LDLIBS += -L$(PWD) $(LDLIBS_A) $(LDLIBS_SO) $(LDLIBS_A) # # By default, assume that there exists a 'configure' script in the top-level