pkgsrc-WIP-changes archive

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

llvm: add patches from pkgsrc



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Sun Feb 21 02:16:20 2016 +0100
Changeset:	5008262e311facc4dc9671128a57e83f9e406daf

Modified Files:
	llvm/distinfo
Added Files:
	llvm/patches/patch-include_llvm_Support_Host.h
	llvm/patches/patch-tools_llvm-shlib_Makefile

Log Message:
llvm: add patches from pkgsrc

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

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

diffstat:
 llvm/distinfo                                  |  2 ++
 llvm/patches/patch-include_llvm_Support_Host.h | 28 ++++++++++++++++++++++++
 llvm/patches/patch-tools_llvm-shlib_Makefile   | 30 ++++++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diffs:
diff --git a/llvm/distinfo b/llvm/distinfo
index 382ec1f..d9413fe 100644
--- a/llvm/distinfo
+++ b/llvm/distinfo
@@ -4,3 +4,5 @@ SHA1 (llvm-3.8.0rc1.src.tar.xz) = ba4574a9a6c6c68fe21c32dd4f74e037614c8259
 RMD160 (llvm-3.8.0rc1.src.tar.xz) = 89a530ba0b4c14422e87e7b556408bff2077aced
 SHA512 (llvm-3.8.0rc1.src.tar.xz) = 0fbb2a5c16aad989a00b0068ab094882eb6f945237f1b82e102835321dc74cdbdaaa2d16dbc73df93ad466b3221ad440c18bd79e70e1f3de92e0a11de717d20e
 Size (llvm-3.8.0rc1.src.tar.xz) = 16559376 bytes
+SHA1 (patch-include_llvm_Support_Host.h) = 55a9fab6ee49ec09a2fd644747a6dddd6b39f942
+SHA1 (patch-tools_llvm-shlib_Makefile) = 5cd529e824a935abfe91c4b820cfd9c318e03102
diff --git a/llvm/patches/patch-include_llvm_Support_Host.h b/llvm/patches/patch-include_llvm_Support_Host.h
new file mode 100644
index 0000000..a533511
--- /dev/null
+++ b/llvm/patches/patch-include_llvm_Support_Host.h
@@ -0,0 +1,28 @@
+$NetBSD$
+
+Fix lack of machine/endian.h on solaris
+http://permalink.gmane.org/gmane.comp.compilers.llvm.devel/63225
+
+--- include/llvm/Support/Host.h.orig	2015-06-23 09:49:53.000000000 +0000
++++ 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/llvm/patches/patch-tools_llvm-shlib_Makefile b/llvm/patches/patch-tools_llvm-shlib_Makefile
new file mode 100644
index 0000000..3ebd8dc
--- /dev/null
+++ b/llvm/patches/patch-tools_llvm-shlib_Makefile
@@ -0,0 +1,30 @@
+$NetBSD$
+
+Add NetBSD support.
+Use full paths to archive files instead of -lfoo to avoid wrapper reordering.
+
+--- tools/llvm-shlib/Makefile.orig	2014-08-01 06:16:03.000000000 +0000
++++ 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