]> rtime.felk.cvut.cz Git - omk.git/blobdiff - snippets/linux
Fixed shared library generation as reported by Tommaso Cucinotta
[omk.git] / snippets / linux
index f507b091e25364fda8f9870ccb417e9905e109ab..59547b3a6cbd878f0b751febe2649a388b5c2e75 100644 (file)
@@ -328,7 +328,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 $$@ $$^ $$(LOADLIBES) $$($(1)_LIBS:%=-l%)
+       $(Q) $(CC) --shared -Xlinker -soname=lib$(1).$(SOLIB_EXT) -o $$@ $$^ $$(LOADLIBES) $$($(1)_LIBS:%=-l%)
 endef