]> rtime.felk.cvut.cz Git - omk/sssa.git/commitdiff
Fixed shared library generation as reported by Tommaso Cucinotta
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 12 Jun 2008 10:14:00 +0000 (10:14 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 12 Jun 2008 10:14:00 +0000 (10:14 +0000)
See also http://www.mail-archive.com/bug-binutils@gnu.org/msg01097.html

darcs-hash:20080612101400-f2ef6-e5d3261a82e06de32b7def48ac3d7ee330db7636.gz

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