From: Michal Sojka Date: Thu, 12 Jun 2008 10:14:00 +0000 (+0000) Subject: Fixed shared library generation as reported by Tommaso Cucinotta X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk/sssa.git/commitdiff_plain/76439ddd99f755f5eca06324115552a321f1f3c2 Fixed shared library generation as reported by Tommaso Cucinotta See also http://www.mail-archive.com/bug-binutils@gnu.org/msg01097.html darcs-hash:20080612101400-f2ef6-e5d3261a82e06de32b7def48ac3d7ee330db7636.gz --- diff --git a/snippets/linux b/snippets/linux index f507b09..59547b3 100644 --- a/snippets/linux +++ b/snippets/linux @@ -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