From: Michal Sojka Date: Mon, 8 Dec 2008 10:53:31 +0000 (+0100) Subject: Fix linking of shared libraries on MinGW X-Git-Tag: v0.1-sssa~18 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk.git/commitdiff_plain/9c7883689f379dc56830a26e9eaacbb7fabe54af 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. --- 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))))