winegcc: Add -I for the prefix's include dir.
This allows external projects to e.g. "#include <wine/debug.h>" for non-standard prefixes, like winehq's distro packages residing in /opt. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6d4d8f2ea0
commit
0e279d26b8
|
@ -9,7 +9,7 @@ C_SRCS = \
|
|||
winegcc.c
|
||||
|
||||
winegcc_EXTRADEFS = \
|
||||
-DINCLUDEDIR="\"${includedir}/wine\"" \
|
||||
-DINCLUDEDIR="\"${includedir}\"" \
|
||||
-DDLLDIR="\"${dlldir}\"" \
|
||||
-DLIBDIR="\"${libdir}\"" \
|
||||
-DCC="\"$(CC)\"" \
|
||||
|
|
|
@ -672,10 +672,11 @@ no_compat_defines:
|
|||
{
|
||||
if (opts->use_msvcrt)
|
||||
{
|
||||
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/msvcrt" : "-I" INCLUDEDIR "/msvcrt" );
|
||||
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 "/windows" : "-I" INCLUDEDIR "/windows" );
|
||||
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR : "-I" INCLUDEDIR );
|
||||
strarray_add(comp_args, gcc_defs ? "-isystem" INCLUDEDIR "/wine/windows" : "-I" INCLUDEDIR "/wine/windows" );
|
||||
}
|
||||
else if (opts->wine_objdir)
|
||||
strarray_add(comp_args, strmake("-I%s/include", opts->wine_objdir) );
|
||||
|
|
Loading…
Reference in New Issue