diff options
| author | Chris Lattner <sabre@nondot.org> | 2012-04-25 06:37:20 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2012-04-25 06:37:20 +0000 |
| commit | 07d9073df27cf17ea0a10b0c3605ac55dfb39d67 (patch) | |
| tree | 82be5542cf2bacc1c751a1fdb57ad2a9e774de40 /llvm/tools/llvm-shlib | |
| parent | 024e12df527deb7c4273643aae8ecba6ae9d2fa1 (diff) | |
| download | bcm5719-llvm-07d9073df27cf17ea0a10b0c3605ac55dfb39d67.tar.gz bcm5719-llvm-07d9073df27cf17ea0a10b0c3605ac55dfb39d67.zip | |
openbsd doesn't support soname, patch by Brad Smith!
llvm-svn: 155536
Diffstat (limited to 'llvm/tools/llvm-shlib')
| -rw-r--r-- | llvm/tools/llvm-shlib/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-shlib/Makefile b/llvm/tools/llvm-shlib/Makefile index 2d2e2c55b80..75bee07d171 100644 --- a/llvm/tools/llvm-shlib/Makefile +++ b/llvm/tools/llvm-shlib/Makefile @@ -67,6 +67,9 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD OpenBSD GNU)) # Include everything from the .a's into the shared library. LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \ -Wl,--no-whole-archive +endif + +ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU)) # Add soname to the library. LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT) endif |

