pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lldb-git: Cut down package into building git snapshot of lldb



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Nov 18 12:24:17 2015 +0100
Changeset:	de83cefcb0ad1a6da7580e55de187885747a0ef5

Modified Files:
	lldb-git/Makefile
	lldb-git/distinfo
Removed Files:
	lldb-git/PLIST.Darwin
	lldb-git/PLIST.Linux
	lldb-git/PLIST.static-analyzer
	lldb-git/options.mk
	lldb-git/patches/patch-ab
	lldb-git/patches/patch-ac
	lldb-git/patches/patch-ad
	lldb-git/patches/patch-include_llvm_Support_Host.h
	lldb-git/patches/patch-tools_clang_tools_scan-build_scan-build
	lldb-git/patches/patch-tools_llvm-shlib_Makefile

Log Message:
lldb-git: Cut down package into building git snapshot of lldb

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=de83cefcb0ad1a6da7580e55de187885747a0ef5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lldb-git/Makefile                                  | 53 ++++++++++++++++++++--
 lldb-git/PLIST.Darwin                              | 16 -------
 lldb-git/PLIST.Linux                               | 12 -----
 lldb-git/PLIST.static-analyzer                     | 15 ------
 lldb-git/distinfo                                  |  6 ---
 lldb-git/options.mk                                | 42 -----------------
 lldb-git/patches/patch-ab                          | 17 -------
 lldb-git/patches/patch-ac                          | 34 --------------
 lldb-git/patches/patch-ad                          | 18 --------
 lldb-git/patches/patch-include_llvm_Support_Host.h | 28 ------------
 .../patch-tools_clang_tools_scan-build_scan-build  | 44 ------------------
 lldb-git/patches/patch-tools_llvm-shlib_Makefile   | 30 ------------
 12 files changed, 48 insertions(+), 267 deletions(-)

diffs:
diff --git a/lldb-git/Makefile b/lldb-git/Makefile
index 1c67cf3..90e0a6a 100644
--- a/lldb-git/Makefile
+++ b/lldb-git/Makefile
@@ -1,8 +1,51 @@
-# $NetBSD: Makefile,v 1.40 2015/05/28 13:25:59 adam Exp $
+# $NetBSD: Makefile.common,v 1.7 2015/07/20 05:49:53 adam Exp $
+#
+# This is a dummy package - only for lldb/llvm porting efforts
+# It will conflict with clang and llvm packages
 
-MAKE_DIRS=		etc/llvm
-INSTALLATION_DIRS=	bin lib libexec
+PKGNAME=	lldb-3.7.0
+CATEGORIES=	lang devel
+
+GIT_REPOSITORIES=	llvm lldb clang
+GIT_REPO.llvm=		git://github.com/llvm-mirror/llvm.git
+GIT_REPO.clang=		git://github.com/llvm-mirror/clang.git
+GIT_REPO.lldb=		git://github.com/llvm-mirror/lldb.git
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://lldb.org/
+COMMENT=	Low Level Virtual Machine compiler infrastructure
+LICENSE=	modified-bsd
+
+WRKSRC=			${WRKDIR}/build
+
+USE_LANGUAGES=		c c++
+USE_CMAKE+=		yes
+GCC_REQD+=		4.8
+
+CHECK_PORTABILITY_SKIP=	utils/buildit/build_llvm
+
+TEST_TARGET=		check unittests
+
+.if exists(/usr/include/panel.h)
+CMAKE_ARGS+=	-DLLDB_DISABLE_CURSES:BOOL=FALSE
+.else
+CMAKE_ARGS+=	-DLLDB_DISABLE_CURSES:BOOL=TRUE
+.endif
+
+CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+=	-DCMAKE_C_COMPILER=gcc
+CMAKE_ARGS+=	-DCMAKE_CXX_COMPILER=g++
+
+CMAKE_ARG_PATH=	${WRKDIR}/llvm
+
+post-extract:
+	${RUN} mkdir -p ${WRKSRC}/build
+	${RUN} mv ${WRKDIR}/clang/ ${WRKDIR}/llvm/tools
+	${RUN} mv ${WRKDIR}/lldb/ ${WRKDIR}/llvm/tools
 
-.include "../../wip/lldb-git/options.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
-.include "../../wip/lldb-git/Makefile.common"
+.include "../../wip/mk/git-package.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../devel/swig/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lldb-git/PLIST.Darwin b/lldb-git/PLIST.Darwin
deleted file mode 100644
index f9817a7..0000000
--- a/lldb-git/PLIST.Darwin
+++ /dev/null
@@ -1,16 +0,0 @@
-@comment $NetBSD: PLIST.Darwin,v 1.2 2014/09/06 07:37:14 adam Exp $
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.10.4.a
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.cc_kext.a
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.cc_kext_ios5.a
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.eprintf.a
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.ios.a
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.osx.a
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.profile_ios.a
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.profile_osx.a
-lib/clang/${PKGVERSION}/lib/darwin/libclang_rt.ubsan_osx.a
-lib/clang/${PKGVERSION}/lib/macho_embedded/libclang_rt.hard_pic.a
-lib/clang/${PKGVERSION}/lib/macho_embedded/libclang_rt.hard_static.a
-lib/clang/${PKGVERSION}/lib/macho_embedded/libclang_rt.soft_pic.a
-lib/clang/${PKGVERSION}/lib/macho_embedded/libclang_rt.soft_static.a
diff --git a/lldb-git/PLIST.Linux b/lldb-git/PLIST.Linux
deleted file mode 100644
index 81b69e0..0000000
--- a/lldb-git/PLIST.Linux
+++ /dev/null
@@ -1,12 +0,0 @@
-@comment $NetBSD: PLIST.Linux,v 1.2 2015/05/22 22:44:08 ryoon Exp $
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.asan-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.asan_cxx-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.builtins-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.dfsan-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.lsan-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.msan-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.profile-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.san-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.tsan-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.ubsan_cxx-x86_64.a
-lib/clang/${PKGVERSION}/lib/linux/libclang_rt.ubsan-x86_64.a
diff --git a/lldb-git/PLIST.static-analyzer b/lldb-git/PLIST.static-analyzer
deleted file mode 100644
index 7ee7019..0000000
--- a/lldb-git/PLIST.static-analyzer
+++ /dev/null
@@ -1,15 +0,0 @@
-@comment $NetBSD: PLIST.static-analyzer,v 1.1 2014/10/01 09:41:02 wiz Exp $
-bin/scan-build
-bin/scan-view
-libexec/c++-analyzer
-libexec/ccc-analyzer
-man/man1/scan-build.1
-share/llvm/static-analyzer/Reporter.py
-share/llvm/static-analyzer/Resources/FileRadar.scpt
-share/llvm/static-analyzer/Resources/GetRadarVersion.scpt
-share/llvm/static-analyzer/Resources/bugcatcher.ico
-share/llvm/static-analyzer/ScanView.py
-share/llvm/static-analyzer/scan-view
-share/llvm/static-analyzer/scanview.css
-share/llvm/static-analyzer/sorttable.js
-share/llvm/static-analyzer/startfile.py
diff --git a/lldb-git/distinfo b/lldb-git/distinfo
index bb1315f..7931384 100644
--- a/lldb-git/distinfo
+++ b/lldb-git/distinfo
@@ -12,9 +12,3 @@ Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
 SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
 RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
 Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
-SHA1 (patch-ab) = 88f3a20c592b90867fdb30b3926804a91cd7e362
-SHA1 (patch-ac) = 337938f9ce2d3db4c749aaaca45126c302b01532
-SHA1 (patch-ad) = 7d6a53a667dd906693ec47c56b121a8b42daf34c
-SHA1 (patch-include_llvm_Support_Host.h) = f57a1b2cb82c2d47453c79054cbeab788917ee40
-SHA1 (patch-tools_clang_tools_scan-build_scan-build) = 6d8a6f2d763856a62587deff64d245511d532777
-SHA1 (patch-tools_llvm-shlib_Makefile) = d49f3cbb859f59b235106cae43ef80a5c1d7f90e
diff --git a/lldb-git/options.mk b/lldb-git/options.mk
deleted file mode 100644
index 774e75e..0000000
--- a/lldb-git/options.mk
+++ /dev/null
@@ -1,42 +0,0 @@
-# $NetBSD: options.mk,v 1.3 2015/04/03 11:06:57 tnn Exp $
-
-PKG_OPTIONS_VAR=	PKG_OPTIONS.clang
-PKG_SUPPORTED_OPTIONS=	clang-static-analyzer
-PKG_SUGGESTED_OPTIONS=	# clang-static-analyzer disabled since it needs python and perl
-
-.include "../../mk/bsd.options.mk"
-
-PLIST_SRC=		${PLIST_SRC_DFLT}
-
-.if !empty(PKG_OPTIONS:Mclang-static-analyzer)
-PLIST_SRC+=		PLIST.static-analyzer
-
-INSTALLATION_DIRS+=	bin
-INSTALLATION_DIRS+=	libexec
-INSTALLATION_DIRS+=	${PKGMANDIR}/man1
-INSTALLATION_DIRS+=	share/llvm/static-analyzer
-INSTALLATION_DIRS+=	share/llvm/static-analyzer/Resources
-
-USE_TOOLS+=	perl:run
-REPLACE_PERL+=	tools/clang/tools/scan-build/c++-analyzer
-REPLACE_PERL+=	tools/clang/tools/scan-build/ccc-analyzer
-REPLACE_PERL+=	tools/clang/tools/scan-build/scan-build
-
-REPLACE_PYTHON+=		tools/clang/tools/scan-view/scan-view
-PYTHON_VERSIONS_INCOMPATIBLE=	33 34 # not yet ported as of 3.5
-.include "../../lang/python/application.mk"
-
-post-build:
-	${ECHO} '#!/bin/sh' > ${WRKSRC}/scan-view
-	${ECHO} "${PREFIX}/share/llvm/static-analyzer/scan-view "'"$$@"' >> ${WRKSRC}/scan-view
-post-install:
-	cd ${WRKSRC}/tools/clang/tools/scan-build && \
-		${INSTALL_SCRIPT} scan-build ${DESTDIR}${PREFIX}/bin; \
-		${INSTALL_SCRIPT} c++-analyzer ccc-analyzer ${DESTDIR}${PREFIX}/libexec; \
-		${INSTALL_DATA} scan-build.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
-		${INSTALL_DATA} scanview.css sorttable.js ${DESTDIR}${PREFIX}/share/llvm/static-analyzer
-	cd ${WRKSRC}/tools/clang/tools/scan-view && \
-		${INSTALL_DATA} Resources/* ${DESTDIR}${PREFIX}/share/llvm/static-analyzer/Resources; \
-		${INSTALL_SCRIPT} scan-view *.py ${DESTDIR}${PREFIX}/share/llvm/static-analyzer
-	${INSTALL_SCRIPT} ${WRKSRC}/scan-view ${DESTDIR}${PREFIX}/bin
-.endif
diff --git a/lldb-git/patches/patch-ab b/lldb-git/patches/patch-ab
deleted file mode 100644
index 241dbcc..0000000
--- a/lldb-git/patches/patch-ab
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2013/01/03 15:19:53 adam Exp $
-
---- ../llvm/docs/Makefile.orig	2015-09-21 20:56:17.000000000 +0000
-+++ ../llvm/docs/Makefile
-@@ -63,11 +63,10 @@ endif
- # 'make generated BUILD_FOR_WEBSITE=1'
- generated:: $(generated_targets)
- 
--install-html: $(PROJ_OBJ_DIR)/html.tar.gz
-+install-html:
- 	$(Echo) Installing HTML documentation
- 	$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html
- 	$(Verb) $(DataInstall) $(HTML) $(DESTDIR)$(PROJ_docsdir)/html
--	$(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/html.tar.gz $(DESTDIR)$(PROJ_docsdir)
- 
- $(PROJ_OBJ_DIR)/html.tar.gz: $(HTML)
- 	$(Echo) Packaging HTML documentation
diff --git a/lldb-git/patches/patch-ac b/lldb-git/patches/patch-ac
deleted file mode 100644
index 43722b5..0000000
--- a/lldb-git/patches/patch-ac
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-ac,v 1.9 2014/01/19 14:06:41 ryoon Exp $
-
---- ../llvm/Makefile.rules.orig	2015-09-21 20:56:17.000000000 +0000
-+++ ../llvm/Makefile.rules
-@@ -847,9 +847,6 @@ endif
- # in the file so they get built before dependencies
- #---------------------------------------------------------
- 
--$(DESTDIR)$(PROJ_bindir) $(DESTDIR)$(PROJ_libdir) $(DESTDIR)$(PROJ_includedir) $(DESTDIR)$(PROJ_etcdir)::
--	$(Verb) $(MKDIR) $@
--
- # To create other directories, as needed, and timestamp their creation
- %/.dir:
- 	$(Verb) $(MKDIR) $* > /dev/null
-@@ -993,7 +990,9 @@ install-local::
- uninstall-local::
- 	$(Echo) UnInstall circumvented with NO_INSTALL
- else
--install-local:: $(DESTDIR)$(PROJ_etcdir) $(CONFIG_FILES)
-+PROJ_etcdir=${PREFIX}/share/examples/llvm
-+install-local:: $(CONFIG_FILES)
-+	$(MKDIR) ${PROJ_etcdir}
- 	$(Echo) Installing Configuration Files To $(DESTDIR)$(PROJ_etcdir)
- 	$(Verb)for file in $(CONFIG_FILES); do \
-           if test -f $(PROJ_OBJ_DIR)/$${file} ; then \
-@@ -1305,7 +1304,7 @@ install-local:: $(DestArchiveLib)
- $(DestArchiveLib): $(LibName.A) $(DESTDIR)$(PROJ_libdir)
- 	$(Echo) Installing $(BuildMode) Archive Library $(DestArchiveLib)
- 	$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_libdir)
--	$(Verb) $(INSTALL) $(LibName.A) $(DestArchiveLib)
-+	$(Verb) $(DataInstall) $(LibName.A) $(DestArchiveLib)
- 
- uninstall-local::
- 	$(Echo) Uninstalling $(BuildMode) Archive Library $(DestArchiveLib)
diff --git a/lldb-git/patches/patch-ad b/lldb-git/patches/patch-ad
deleted file mode 100644
index cbbbe7b..0000000
--- a/lldb-git/patches/patch-ad
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-ad,v 1.6 2013/05/22 20:51:16 sbd Exp $
-
---- ../llvm/Makefile.config.in.orig	2015-09-21 20:56:17.000000000 +0000
-+++ ../llvm/Makefile.config.in
-@@ -106,11 +106,11 @@ endif
- PROJ_bindir     := $(PROJ_prefix)/bin
- PROJ_libdir     := $(PROJ_prefix)/lib
- PROJ_datadir    := $(PROJ_prefix)/share
--PROJ_docsdir    := $(PROJ_prefix)/docs/llvm
-+PROJ_docsdir    := $(PROJ_prefix)/share/doc/llvm
- PROJ_etcdir     := $(PROJ_prefix)/etc/llvm
- PROJ_includedir := $(PROJ_prefix)/include
- PROJ_infodir    := $(PROJ_prefix)/info
--PROJ_mandir     := $(PROJ_prefix)/share/man
-+PROJ_mandir     := $(PROJ_prefix)/${PKGMANDIR}
- 
- # Determine if we're on a unix type operating system
- LLVM_ON_UNIX:=@LLVM_ON_UNIX@
diff --git a/lldb-git/patches/patch-include_llvm_Support_Host.h b/lldb-git/patches/patch-include_llvm_Support_Host.h
deleted file mode 100644
index 55db6f7..0000000
--- a/lldb-git/patches/patch-include_llvm_Support_Host.h
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-include_llvm_Support_Host.h,v 1.2 2014/01/19 14:06:41 ryoon Exp $
-
-Fix lack of machine/endian.h on solaris
-http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225 
-
---- ../llvm/include/llvm/Support/Host.h.orig	2015-09-21 20:56:17.000000000 +0000
-+++ ../llvm/include/llvm/Support/Host.h
-@@ -18,6 +18,20 @@
- 
- #if defined(__linux__) || defined(__GNU__)
- #include <endian.h>
-+#elif defined(__sun) & defined(__SVR4)
-+# ifndef BYTE_ORDER
-+# define LITTLE_ENDIAN 1234
-+# define BIG_ENDIAN 4321
-+# if defined(__sun) & defined(__SVR4)
-+# include <sys/isa_defs.h>
-+# ifdef _LITTLE_ENDIAN
-+# define BYTE_ORDER LITTLE_ENDIAN
-+# endif
-+# ifdef _BIG_ENDIAN
-+# define BYTE_ORDER BIG_ENDIAN
-+# endif
-+# endif /* sun */
-+# endif /* BYTE_ORDER */
- #else
- #if !defined(BYTE_ORDER) && !defined(LLVM_ON_WIN32)
- #include <machine/endian.h>
diff --git a/lldb-git/patches/patch-tools_clang_tools_scan-build_scan-build b/lldb-git/patches/patch-tools_clang_tools_scan-build_scan-build
deleted file mode 100644
index 884a340..0000000
--- a/lldb-git/patches/patch-tools_clang_tools_scan-build_scan-build
+++ /dev/null
@@ -1,44 +0,0 @@
-$NetBSD: patch-tools_clang_tools_scan-build_scan-build,v 1.1 2014/10/01 09:41:02 wiz Exp $
-
-Adapt paths for pkgsrc installation.
-
---- ../llvm/tools/clang/tools/scan-build/scan-build.orig	2015-09-21 20:57:27.000000000 +0000
-+++ ../llvm/tools/clang/tools/scan-build/scan-build
-@@ -462,7 +462,7 @@ sub CopyFiles {
- 
-   my $Dir = shift;
- 
--  my $JS = Cwd::realpath("$RealBin/sorttable.js");
-+  my $JS = Cwd::realpath("$RealBin/../share/llvm/static-analyzer/sorttable.js");
- 
-   DieDiag("Cannot find 'sorttable.js'.\n")
-     if (! -r $JS);
-@@ -472,7 +472,7 @@ sub CopyFiles {
-   DieDiag("Could not copy 'sorttable.js' to '$Dir'.\n")
-     if (! -r "$Dir/sorttable.js");
- 
--  my $CSS = Cwd::realpath("$RealBin/scanview.css");
-+  my $CSS = Cwd::realpath("$RealBin/../share/llvm/static-analyzer/scanview.css");
- 
-   DieDiag("Cannot find 'scanview.css'.\n")
-     if (! -r $CSS);
-@@ -1726,8 +1726,8 @@ $Options{OutputDir} = GetHTMLRunDir($Opt
- 
- # Determine the location of ccc-analyzer.
- my $AbsRealBin = Cwd::realpath($RealBin);
--my $Cmd = "$AbsRealBin/libexec/ccc-analyzer";
--my $CmdCXX = "$AbsRealBin/libexec/c++-analyzer";
-+my $Cmd = "$AbsRealBin/../libexec/ccc-analyzer";
-+my $CmdCXX = "$AbsRealBin/../libexec/c++-analyzer";
- 
- # Portability: use less strict but portable check -e (file exists) instead of
- # non-portable -x (file is executable). On some windows ports -x just checks
-@@ -1795,7 +1795,7 @@ if (defined $Options{OutputFormat}) {
-     if ($Options{ViewResults} and -r "$Options{OutputDir}/index.html") {
-       Diag "Analysis run complete.\n";
-       Diag "Viewing analysis results in '$Options{OutputDir}' using scan-view.\n";
--      my $ScanView = Cwd::realpath("$RealBin/scan-view");
-+      my $ScanView = Cwd::realpath("$RealBin/../share/llvm/static-analyzer/scan-view");
-       if (! -x $ScanView) { $ScanView = "scan-view"; }
-       exec $ScanView, "$Options{OutputDir}";
-     }
diff --git a/lldb-git/patches/patch-tools_llvm-shlib_Makefile b/lldb-git/patches/patch-tools_llvm-shlib_Makefile
deleted file mode 100644
index 187b804..0000000
--- a/lldb-git/patches/patch-tools_llvm-shlib_Makefile
+++ /dev/null
@@ -1,30 +0,0 @@
-$NetBSD: patch-tools_llvm-shlib_Makefile,v 1.2 2015/04/26 13:08:38 tnn Exp $
-
-Add NetBSD support.
-Use full paths to archive files instead of -lfoo to avoid wrapper reordering.
-
---- ../llvm/tools/llvm-shlib/Makefile.orig	2015-09-21 20:56:18.000000000 +0000
-+++ ../llvm/tools/llvm-shlib/Makefile
-@@ -53,18 +53,18 @@ ifeq ($(HOST_OS),Darwin)
-     LLVMLibsOptions    := $(LLVMLibsOptions) -all_load
- endif
- 
--ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig))
-+ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD NetBSD OpenBSD GNU Bitrig))
-     # Include everything from the .a's into the shared library.
--    LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
-+    LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsPaths) \
-                        -Wl,--no-whole-archive
- endif
- 
--ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD GNU))
-+ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD NetBSD GNU))
-     # Add soname to the library.
-     LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
- endif
- 
--ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD))
-+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD NetBSD))
-     # Don't allow unresolved symbols.
-     LLVMLibsOptions += -Wl,--no-undefined
- endif


Home | Main Index | Thread Index | Old Index