From b0972efc3dc69563b41eef59a8d3fd4f634ef379 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 8 Nov 2003 09:58:47 +0000 Subject: [PATCH] * tools/gcc.jam (link.dll) : -soname is not accepted by solaris LD. Using -h allows it to work with GNU LD and solaris LD (and presumably others). Patch from Andre Hentz. [SVN r20750] --- src/tools/gcc.jam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index a239807e2..0bf977efb 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -126,7 +126,7 @@ rule link.dll ( targets * : sources * : properties * ) # Differ from 'link' above only by -shared. actions link.dll bind LIBRARIES { - $(NAME:E=g++) $(OPTIONS) -L"$(LINKPATH)" -Wl,-rpath$(SPACE)-Wl,"$(RPATH)" -o "$(<)" -Wl,-soname,$(<[1]:D=) -shared "$(>)" "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME) + $(NAME:E=g++) $(OPTIONS) -L"$(LINKPATH)" -Wl,-rpath$(SPACE)-Wl,"$(RPATH)" -o "$(<)" -Wl,-h$(SPACE)-Wl,$(<[1]:D=) -shared "$(>)" "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME) } # Set up threading support. It's somewhat contrived, so perform it at the end,