winegcc: Add support for the --sysroot option to allow out-of-tree cross-compiling.
This commit is contained in:
parent
b09418b5d2
commit
bcc1379bda
|
@ -71,7 +71,7 @@ MAKECTESTS = $(TOOLSDIR)/tools/make_ctests
|
||||||
WRC = $(TOOLSDIR)/tools/wrc/wrc
|
WRC = $(TOOLSDIR)/tools/wrc/wrc
|
||||||
WMC = $(TOOLSDIR)/tools/wmc/wmc
|
WMC = $(TOOLSDIR)/tools/wmc/wmc
|
||||||
WIDL = $(TOOLSDIR)/tools/widl/widl
|
WIDL = $(TOOLSDIR)/tools/widl/widl
|
||||||
WINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc $(TARGETFLAGS) -B$(TOOLSDIR)/tools/winebuild
|
WINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc $(TARGETFLAGS) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(TOPOBJDIR)
|
||||||
RELPATH = $(TOOLSDIR)/tools/relpath
|
RELPATH = $(TOOLSDIR)/tools/relpath
|
||||||
SFNT2FNT = $(TOOLSDIR)/tools/sfnt2fnt
|
SFNT2FNT = $(TOOLSDIR)/tools/sfnt2fnt
|
||||||
FNT2FON = $(TOOLSDIR)/tools/fnt2fon
|
FNT2FON = $(TOOLSDIR)/tools/fnt2fon
|
||||||
|
|
|
@ -1154,6 +1154,12 @@ int main(int argc, char **argv)
|
||||||
case '-':
|
case '-':
|
||||||
if (strcmp("-static", argv[i]+1) == 0)
|
if (strcmp("-static", argv[i]+1) == 0)
|
||||||
linking = -1;
|
linking = -1;
|
||||||
|
else if (!strncmp("--sysroot", argv[i], 9) && opts.wine_objdir)
|
||||||
|
{
|
||||||
|
if (argv[i][9] == '=') opts.wine_objdir = argv[i] + 10;
|
||||||
|
else opts.wine_objdir = argv[++i];
|
||||||
|
raw_compiler_arg = raw_linker_arg = 0;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue