Dash:
[t2.git] / package / raku / raku-librarymake / ld.patch
blob3c64c3accdb2c79cd165353de0528eaf49b9f992
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/*/raku-librarymake/ld.patch
5 # Copyright (C) 2021 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- P6-LibraryMake-7aae514/lib/LibraryMake.pm6.vanilla 2021-07-11 15:24:19.191000000 +0200
18 +++ P6-LibraryMake-7aae514/lib/LibraryMake.pm6 2021-07-11 15:26:16.309000000 +0200
19 @@ -184,7 +184,12 @@
22 for %vars.kv -> $k, $v {
23 - %vars{$k} [R//]= %*ENV{$k};
24 + if %*ENV<SDECFG_VERBOSE>:exists and $k eq 'LD' {
25 + # Inside T2 %LD% should be set to $CC
26 + %vars{$k} [R//]= %*ENV<CC>;
27 + } else {
28 + %vars{$k} [R//]= %*ENV{$k};
29 + }
32 return %vars;