Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.hgignore3
-rw-r--r--CHANGES.txt1
-rw-r--r--src/actions/make/make_cpp.lua5
3 files changed, 7 insertions, 2 deletions
diff --git a/.hgignore b/.hgignore
index 03f7bea..13b6351 100644
--- a/.hgignore
+++ b/.hgignore
@@ -29,4 +29,5 @@ Makefile
*.bbprojectsettings
Scratchpad.txt
Unix Worksheet.worksheet
-project.bbprojectdata \ No newline at end of file
+project.bbprojectdata
+Premake4.tmproj \ No newline at end of file
diff --git a/CHANGES.txt b/CHANGES.txt
index 65ed451..9d48fa8 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -36,6 +36,7 @@
* Patch 3372345: Gmake action's PCHs don't work with Mingw (Martin Ridgers)
* Patch 3317329: Support vstudio CompileAs for mixed-language projects (xpol)
* Patch 3337372: Improved precompiled header support (Anders Ericsson)
+* Patch 3401184: Fix Gmake LDFLAGS generation order (Adam Petrone)
-------
diff --git a/src/actions/make/make_cpp.lua b/src/actions/make/make_cpp.lua
index 75d2ced..f50eb93 100644
--- a/src/actions/make/make_cpp.lua
+++ b/src/actions/make/make_cpp.lua
@@ -257,7 +257,10 @@
_p(' CPPFLAGS += %s $(DEFINES) $(INCLUDES)', table.concat(cc.getcppflags(cfg), " "))
_p(' CFLAGS += $(CPPFLAGS) $(ARCH) %s', table.concat(table.join(cc.getcflags(cfg), cfg.buildoptions), " "))
_p(' CXXFLAGS += $(CFLAGS) %s', table.concat(cc.getcxxflags(cfg), " "))
- _p(' LDFLAGS += %s', table.concat(table.join(cc.getldflags(cfg), cfg.linkoptions, cc.getlibdirflags(cfg)), " "))
+
+ -- Patch #3401184 changed the order
+ _p(' LDFLAGS += %s', table.concat(table.join(cc.getlibdirflags(cfg), cc.getldflags(cfg), cfg.linkoptions), " "))
+
_p(' RESFLAGS += $(DEFINES) $(INCLUDES) %s',
table.concat(table.join(cc.getdefines(cfg.resdefines),
cc.getincludedirs(cfg.resincludedirs), cfg.resoptions), " "))