@@ -110,6 +110,7 @@ MKDIR = $(call NATIVEMKDR,$(call QUOTE_ARG,$(call NATIVEPATH,$1)))
110
110
UPDIR_ADD = $(subst ../,_../,$(subst \,/,$1) )
111
111
UPDIR_RM = $(subst _../,../,$(subst \,/,$1) )
112
112
113
+ FASMG_LIB = $(patsubst % ,"% ",$(subst ",\",$(subst \,\\,$(call NATIVEPATH,$1) ) ) )
113
114
FASMG_FILES = $(subst $(space ) ,$(comma ) ,$(patsubst % ,"% ",$(subst ",\",$(subst \,\\,$(call NATIVEPATH,$1) ) ) ) ) # "
114
115
LINKER_SCRIPT ?= $(CEDEV_TOOLCHAIN ) /meta/linker_script
115
116
@@ -165,11 +166,10 @@ endif
165
166
# find all required/optional libload libraries
166
167
LIBLOAD_LIBS ?= $(wildcard $(CEDEV_TOOLCHAIN ) /lib/libload/* .lib) $(EXTRA_LIBLOAD_LIBS )
167
168
LIBLOAD_LIBS := $(filter-out % libload.lib,$(LIBLOAD_LIBS ) )
168
- REQ_LIBLOAD := $(CEDEV_TOOLCHAIN ) /lib/libload/libload.lib
169
- REQ_LIBLOAD += $(filter-out $(addprefix % ,$(addsuffix .lib,$(LIBLOAD_OPTIONAL ) ) ) ,$(LIBLOAD_LIBS ) )
169
+ REQ_LIBLOAD := $(filter-out $(addprefix % ,$(addsuffix .lib,$(LIBLOAD_OPTIONAL ) ) ) ,$(LIBLOAD_LIBS ) )
170
170
OPT_LIBLOAD := $(filter $(addprefix % ,$(addsuffix .lib,$(LIBLOAD_OPTIONAL ) ) ) ,$(LIBLOAD_LIBS ) )
171
- REQ_LIBLOAD := $(patsubst % ," % ", $( subst ",\", $( subst \,\\, $( call NATIVEPATH ,$(REQ_LIBLOAD ) ) ) ) )
172
- OPT_LIBLOAD := $(patsubst % ," % ", $( subst ",\", $( subst \,\\, $( call NATIVEPATH ,$(OPT_LIBLOAD ) ) ) ) )
171
+ REQ_LIBLOAD := $(call FASMG_LIB ,$(REQ_LIBLOAD ) )
172
+ OPT_LIBLOAD := $(call FASMG_LIB ,$(OPT_LIBLOAD ) )
173
173
OPT_LIBLOAD := $(foreach lib,$(OPT_LIBLOAD ) ,$(lib )$(space ) optional)
174
174
LDLIBS := $(subst $(space ) ,$(comma )$(space ) ,$(strip $(REQ_LIBLOAD )$(space )$(OPT_LIBLOAD ) ) )
175
175
LDLIBS := $(subst $(comma )$(space ) optional,$(space ) optional,$(LDLIBS ) )
0 commit comments