From fdc9ecbfc676e0448f3a9eae93752c59478a8bfa Mon Sep 17 00:00:00 2001 From: dolik Date: Fri, 12 Feb 2010 12:08:39 +0000 Subject: [PATCH] ide: Makefiles (exposed compiler and linker variables) git-svn-id: svn://ultimatepp.org/upp/trunk@2064 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Builders/MakeFile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uppsrc/ide/Builders/MakeFile.cpp b/uppsrc/ide/Builders/MakeFile.cpp index ca1324a39..9de471268 100644 --- a/uppsrc/ide/Builders/MakeFile.cpp +++ b/uppsrc/ide/Builders/MakeFile.cpp @@ -72,7 +72,8 @@ void CppBuilder::AddMakeFile(MakeFile& makefile, String package, makefile.output << (main ? String("$(OutDir)") : makefile.outdir) << makefile.outfile; if(main) { - makefile.config << "CC = c++\n"; + makefile.config << "CC = c++\n" + "LINKER = $(CC)\n"; String flags; if(HasFlag("DEBUG")) flags << " -D_DEBUG " << debug_options; @@ -96,7 +97,7 @@ void CppBuilder::AddMakeFile(MakeFile& makefile, String package, makefile.install << "\t-mkdir -p $(OutDir)\n"; Vector lib; String lnk; - lnk << "c++"; + lnk << "$(LINKER)"; if(!HasFlag("SHARED")) lnk << " -static"; if(HasFlag("WIN32")) {