1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../dietlibc/diet-gcc-hack.patch
5 # Copyright (C) 2004 - 2018 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
15 # --- T2-COPYRIGHT-NOTE-END ---
17 GCC (but potentionally other packages) use -xassembler, which we must not inject
18 the library objects into. The assembler does not recognize object files ... ,-)
20 - Rene Rebe <rene@exactcode.de>
22 --- dietlibc-0.34/diet.c.vanilla 2018-10-23 12:16:16.161405824 +0000
23 +++ dietlibc-0.34/diet.c 2018-10-23 12:23:03.489399698 +0000
26 if (tmp<cc) goto donttouch;
27 if (!strstr(cc,"cc") && !strstr(cc,"clang")) goto donttouch;
28 + if (!strcmp(cc, "-xassembler")) goto donttouch;
29 if ((tmp2=strstr(cc,"linux-"))) { /* cross compiling? */
30 int len=strlen(platform);