From 9c7883689f379dc56830a26e9eaacbb7fabe54af Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 8 Dec 2008 11:53:31 +0100 Subject: [PATCH] Fix linking of shared libraries on MinGW For some reason find command didn't understand the command line. If anything is prepended to the command line, it starts to work. --- snippets/linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/linux b/snippets/linux index 64387b4..336e035 100644 --- a/snippets/linux +++ b/snippets/linux @@ -390,7 +390,7 @@ $(USER_LIB_DIR)/lib$(1).$(SOLIB_EXT): $$($(1)_shared_libs) $$($(1)_objslo) $(Q)$(CC) --shared -Xlinker -soname=lib$(1).$(SOLIB_EXT) -o $$@ $$($(1)_objslo) $$(LOADLIBES) $$($(1)_libs:%=-l%) endef --include $(shell find $(USER_BUILD_DIR) -name 'lib*.omkvar') +-include $(shell true; find $(USER_BUILD_DIR) -name 'lib*.omkvar') # `true' is a hack for MinGW #$(warning $(shared_libs)) $(foreach lib,$(shared_libs),$(eval $(call solib_link_template,$(lib)))) -- 2.39.2