Andre Heider : winegcc: Don't add the prefix's include dir using -isystem.
Alexandre Julliard
julliard at winehq.org
Mon Dec 17 15:36:39 CST 2018
Module: wine
Branch: master
Commit: 9bb21d11352783307a978d777dc0ab5d474c09c1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9bb21d11352783307a978d777dc0ab5d474c09c1
Author: Andre Heider <a.heider at gmail.com>
Date: Sun Dec 16 09:22:45 2018 +0100
winegcc: Don't add the prefix's include dir using -isystem.
Always use -I, this fixes the include search path if the prefix is
set to '/usr'.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46293
Signed-off-by: Andre Heider <a.heider at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tools/winegcc/winegcc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index b5fa881..71ebf12 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -698,7 +698,7 @@ no_compat_defines:
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/wine/msvcrt" : "-I" INCLUDEDIR "/wine/msvcrt" );
strarray_add(comp_args, "-D__MSVCRT__");
}
- strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR : "-I" INCLUDEDIR );
+ strarray_add(comp_args, "-I" INCLUDEDIR );
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/wine/windows" : "-I" INCLUDEDIR "/wine/windows" );
}
else if (opts->wine_objdir)
More information about the wine-cvs
mailing list