]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Fix linking of shared libraries on MinGW
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 8 Dec 2008 10:53:31 +0000 (11:53 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 8 Dec 2008 10:53:31 +0000 (11:53 +0100)
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

index 64387b4f48644831a4704de35d9e3612fdcadad7..336e0350c2b9c71bab934775361b2e2a6ee47090 100644 (file)
@@ -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))))