]> rtime.felk.cvut.cz Git - omk.git/blobdiff - snippets/linux
Fixed a bug caused by trailing space in SOURCES_DIR.
[omk.git] / snippets / linux
index 7c23ea5c249a548179057476c278200f3fff96bb..24f52bae530e7d1d200548dab0fc1589986d4e2f 100644 (file)
@@ -251,7 +251,7 @@ SOLIB_SOURCES += $$($(1)_SOURCES)
 
 $(USER_LIB_DIR)/lib$(1).$(SOLIB_EXT): $$($(1)_OBJSLO)
        @$(QUIET_CMD_ECHO) "  LINK    $$@"
-       $(Q) $(LD) --shared --soname=lib$(1).$(SOLIB_EXT) -o $$@ $$^ $$($(1)_LIBS:%=-l%)
+       $(Q) $(LD) --shared --soname=lib$(1).$(SOLIB_EXT) -o $$@ $$^ $$(LOADLIBES) $$($(1)_LIBS:%=-l%)
 endef