Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] wrappers/cross-cc: drop -isystem /usr/include, too
@ 2023-10-12 12:43 sgn
  2023-10-12 12:57 ` [PR REVIEW] " Johnnynator
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: sgn @ 2023-10-12 12:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]

There is a new pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages cross-cc-isystem
https://github.com/void-linux/void-packages/pull/46635

wrappers/cross-cc: drop -isystem /usr/include, too
<!-- Uncomment relevant sections and delete options which are not applicable -->
For #46246 
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46635.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cross-cc-isystem-46635.patch --]
[-- Type: text/x-diff, Size: 1120 bytes --]

From 898223e6e1e2388df1f8c7ec9b144ee0d3ee9328 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Thu, 12 Oct 2023 19:42:10 +0700
Subject: [PATCH] wrappers/cross-cc: drop -isystem /usr/include, too

---
 common/wrappers/cross-cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/wrappers/cross-cc b/common/wrappers/cross-cc
index 0e08bc91d0fc2..9f9d581a8b7af 100644
--- a/common/wrappers/cross-cc
+++ b/common/wrappers/cross-cc
@@ -23,13 +23,13 @@ while [ $i -lt ${#ARGS[@]} ]; do
 			MYARGS+=("-L${arg}")
 		fi
 		unset libpath
-	elif [ "$arg" = "-I" ]; then
+	elif [ "$arg" = "-I" -o "$arg" = "-isystem" ]; then
 		incpath=1
 	elif [ "$arg" = "-L" ]; then
 		libpath=1
-	elif [ "$arg" = "-I/usr/include" -o "$arg" = "-L/usr/lib" \
+	elif [ "$arg" = "-I/usr/include" -o "$arg" = "-isystem/usr/include" \
 		-o "$arg" = "-L/usr/lib32" -o "$arg" = "-L/usr/lib64" \
-		-o "$arg" = "-L/lib" ]; then
+		-o "$arg" = "-L/usr/lib" -o "$arg" = "-L/lib" ]; then
 		echo "[cc-wrapper] ignoring $arg"
 	else
 		MYARGS+=("${arg}")

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-10-14  5:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12 12:43 [PR PATCH] wrappers/cross-cc: drop -isystem /usr/include, too sgn
2023-10-12 12:57 ` [PR REVIEW] " Johnnynator
2023-10-13  4:51 ` [PR PATCH] [Updated] " sgn
2023-10-13  5:41 ` SpidFightFR
2023-10-13 16:03 ` classabbyamp
2023-10-13 16:51 ` SpidFightFR
2023-10-13 16:55 ` classabbyamp
2023-10-13 16:55 ` classabbyamp
2023-10-14  5:39 ` [PR PATCH] [Merged]: " sgn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).