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
This commit is contained in:
Norman Feske 2019-09-23 12:17:12 +02:00 committed by Christian Helmuth
parent 8d6285927b
commit a17c5e30b7
1 changed files with 2 additions and 2 deletions

View File

@ -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