From c61816ee7a22c49d249c6fc150cb3c15834679ea Mon Sep 17 00:00:00 2001 From: simonpj Date: Thu, 6 Jan 2005 15:05:45 +0000 Subject: [PATCH] [project @ 2005-01-06 15:05:45 by simonpj] Mention problem with ld on Windows --- docs/building/building.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/building/building.xml b/docs/building/building.xml index 2a61ab8..d8683c6 100644 --- a/docs/building/building.xml +++ b/docs/building/building.xml @@ -4317,6 +4317,24 @@ Cygwin programs have a more complicated mount table, and map the lettered drives +Crippled <command>ld</command> + + +It turns out that on both Cygwin and MSYS, the ld has a +limit of 32kbytes on its command line. Especially when using split object +files, the make system can emit calls to ld with thousands +of files on it. Then you may see something like this: + +(cd Graphics/Rendering/OpenGL/GL/QueryUtils_split && /mingw/bin/ld -r -x -o ../QueryUtils.o *.o) +/bin/sh: /mingw/bin/ld: Invalid argument + +The solution is either to switch off object file splitting (set + to NO in your +build.mk), +or to make the module smaller. + + + Host System vs Target System -- 1.7.10.4