ide/Project: Fixed double GCC_PREFIX introduced by 'fix makefile generation to be...
authorJerome St-Louis <jerome@ecere.com>
Fri, 15 Jul 2016 04:36:43 +0000 (00:36 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 28 Jul 2016 22:23:30 +0000 (18:23 -0400)
ide/src/project/Project.ec

index a968ce2..fe287f5 100644 (file)
@@ -2576,8 +2576,16 @@ private:
             f.Printf("EAR := %s\n", compiler.earCommand);
 
             f.Puts("AS := $(GCC_PREFIX)as\n");
-            f.Printf("LD := $(GCC_PREFIX)%s$(_SYSROOT)$(if $(GCC_LD_FLAGS),$(space)$(GCC_LD_FLAGS),)\n",
-                  compiler.ldCommand && compiler.ldCommand[0] ? compiler.ldCommand : "$(if $(CONTAINS_CXX),$(CXX),$(CC))");
+            f.Printf("LD := ");
+            if(compiler.ldCommand && compiler.ldCommand[0])
+            {
+               f.Puts("$(GCC_PREFIX)");
+               f.Puts(compiler.ldCommand);
+            }
+            else
+               f.Puts("$(if $(CONTAINS_CXX),$(CXX),$(CC))");
+            f.Puts("$(_SYSROOT)$(if $(GCC_LD_FLAGS),$(space)$(GCC_LD_FLAGS),)\n");
+
             f.Printf("AR := $(GCC_PREFIX)%s\n", compiler.arCommand);
             f.Puts("STRIP := $(GCC_PREFIX)strip\n");
             f.Puts("ifdef WINDOWS_TARGET\n");