String outputDelimiter = null;\r
\r
public void command(CCTask cctask, UserDefineDef userdefine){\r
+ boolean isGccCommand = userdefine.getFamily().equalsIgnoreCase("GCC");\r
File workdir;\r
Project project = cctask.getProject();\r
if(userdefine.getWorkdir() == null) {\r
String[] libSet = userdefine.get_libset();\r
if (libSet != null && libSet.length > 0){\r
cmdLen = cmdLen + libSet.length;\r
+ if (isGccCommand) {\r
+ cmdLen += 2; // we need -( and -) to group libs for GCC\r
+ }\r
}\r
\r
//\r
}\r
\r
if (libSet != null && libSet.length > 0){\r
+ if (isGccCommand) {\r
+ cmd[index++] = "-(";\r
+ }\r
for (int k = 0; k < libSet.length ; k++){\r
cmd[index++] = libSet[k];\r
}\r
+ if (isGccCommand) {\r
+ cmd[index++] = "-)";\r
+ }\r
}\r
for (int j = 0; j < fileNames.length; j++){\r
// execute the command\r