head	1.3;
access;
symbols
	pkgsrc-2022Q2:1.2.0.58
	pkgsrc-2022Q2-base:1.2
	pkgsrc-2022Q1:1.2.0.56
	pkgsrc-2022Q1-base:1.2
	pkgsrc-2021Q4:1.2.0.54
	pkgsrc-2021Q4-base:1.2
	pkgsrc-2021Q3:1.2.0.52
	pkgsrc-2021Q3-base:1.2
	pkgsrc-2021Q2:1.2.0.50
	pkgsrc-2021Q2-base:1.2
	pkgsrc-2021Q1:1.2.0.48
	pkgsrc-2021Q1-base:1.2
	pkgsrc-2020Q4:1.2.0.46
	pkgsrc-2020Q4-base:1.2
	pkgsrc-2020Q3:1.2.0.44
	pkgsrc-2020Q3-base:1.2
	pkgsrc-2020Q2:1.2.0.40
	pkgsrc-2020Q2-base:1.2
	pkgsrc-2020Q1:1.2.0.20
	pkgsrc-2020Q1-base:1.2
	pkgsrc-2019Q4:1.2.0.42
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.2.0.38
	pkgsrc-2019Q3-base:1.2
	pkgsrc-2019Q2:1.2.0.36
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.34
	pkgsrc-2019Q1-base:1.2
	pkgsrc-2018Q4:1.2.0.32
	pkgsrc-2018Q4-base:1.2
	pkgsrc-2018Q3:1.2.0.30
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.2.0.28
	pkgsrc-2018Q2-base:1.2
	pkgsrc-2018Q1:1.2.0.26
	pkgsrc-2018Q1-base:1.2
	pkgsrc-2017Q4:1.2.0.24
	pkgsrc-2017Q4-base:1.2
	pkgsrc-2017Q3:1.2.0.22
	pkgsrc-2017Q3-base:1.2
	pkgsrc-2017Q2:1.2.0.18
	pkgsrc-2017Q2-base:1.2
	pkgsrc-2017Q1:1.2.0.16
	pkgsrc-2017Q1-base:1.2
	pkgsrc-2016Q4:1.2.0.14
	pkgsrc-2016Q4-base:1.2
	pkgsrc-2016Q3:1.2.0.12
	pkgsrc-2016Q3-base:1.2
	pkgsrc-2016Q2:1.2.0.10
	pkgsrc-2016Q2-base:1.2
	pkgsrc-2016Q1:1.2.0.8
	pkgsrc-2016Q1-base:1.2
	pkgsrc-2015Q4:1.2.0.6
	pkgsrc-2015Q4-base:1.2
	pkgsrc-2015Q3:1.2.0.4
	pkgsrc-2015Q3-base:1.2
	pkgsrc-2015Q2:1.2.0.2
	pkgsrc-2015Q2-base:1.2;
locks; strict;
comment	@# @;


1.3
date	2022.08.14.22.45.05;	author tnn;	state dead;
branches;
next	1.2;
commitid	IuGdluypnvhzOTPD;

1.2
date	2015.04.26.13.08.38;	author tnn;	state Exp;
branches;
next	1.1;
commitid	iQriXWlozLuHl6jy;

1.1
date	2015.04.06.17.25.05;	author tnn;	state Exp;
branches;
next	;
commitid	ot1P6qAp8ySMpygy;


desc
@@


1.3
log
@libLLVM34: remove

The only consumer was wip/pure. But that needs LLVM 3.5 now.
Will import libLLVM35 to wip instead where it may peacefully
rot until wip/pure upstream supports newer LLVM.
@
text
@$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.

--- tools/llvm-shlib/Makefile.orig	2014-05-15 00:15:27.000000000 +0000
+++ tools/llvm-shlib/Makefile
@@@@ -64,18 +64,18 @@@@ ifeq ($(HOST_OS),Darwin)
     endif
 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
@


1.2
log
@Use full paths to archive files instead of -lfoo to avoid wrapper reordering
when linking a shared library out of .a files.
This is what other packages that use -Wl,--whole-archive seem to do.
This works with and without cwrappers.

XXX someone please apply similar fixes for Darwin and SunOS if necessary
@
text
@d1 1
a1 1
$NetBSD$
@


1.1
log
@Teach the llvm shared library build rules about NetBSD so we get a single
shlib with whole-archive like on other platforms. Bump revision and bl3.
@
text
@d3 3
d15 2
a16 1
     LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
@

