]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Allow to specify libraries which should be used be included into shared library.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sat, 10 Nov 2007 11:37:00 +0000 (11:37 +0000)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sat, 10 Nov 2007 11:37:00 +0000 (11:37 +0000)
Needs testing and more time to clean up.

darcs-hash:20071110113725-ff715-4fec12b8041e313f2e49dee19b3932a2e9c41df6.gz

snippets/linux

index d5782c496747f58a7e79f83cf940e2180038170a..5ec81c61b737d49cdd97dd836e99492f1a95df46 100644 (file)
@@ -265,7 +265,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 $$@ $$^
+       $(Q) $(LD) --shared --soname=lib$(1).$(SOLIB_EXT) -o $$@ $$^ $$($(1)_LIBS:%=-l%)
 endef