[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6472] Support MinGW-w64 cross compiler
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6472] Support MinGW-w64 cross compiler |
Date: |
Mon, 18 Jan 2016 01:52:52 +0000 |
Revision: 6472
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6472
Author: chicares
Date: 2016-01-18 01:52:52 +0000 (Mon, 18 Jan 2016)
Log Message:
-----------
Support MinGW-w64 cross compiler
Modified Paths:
--------------
lmi/trunk/workhorse.make
Modified: lmi/trunk/workhorse.make
===================================================================
--- lmi/trunk/workhorse.make 2016-01-18 01:31:24 UTC (rev 6471)
+++ lmi/trunk/workhorse.make 2016-01-18 01:52:52 UTC (rev 6472)
@@ -141,12 +141,14 @@
ifeq (3.4.4,$(gnu_cpp_version))
else ifeq (3.4.5,$(gnu_cpp_version))
+else ifeq (4.9.2,$(gnu_cpp_version))
else
$(error Untested $(GNU_CPP) version '$(gnu_cpp_version)')
endif
ifeq (3.4.4,$(gnu_cxx_version))
else ifeq (3.4.5,$(gnu_cxx_version))
+else ifeq (4.9.2,$(gnu_cxx_version))
else
$(error Untested $(GNU_CXX) version '$(gnu_cxx_version)')
endif
@@ -410,6 +412,19 @@
# Use a correct snprintf() implementation:
# http://article.gmane.org/gmane.comp.gnu.mingw.user/27539
cxx_standard += -posix
+else ifeq (4.9.2,$(gcc_version))
+ # See:
+ # http://lists.nongnu.org/archive/html/lmi/2015-12/msg00028.html
+ # http://lists.nongnu.org/archive/html/lmi/2015-12/msg00040.html
+ # XMLWRAPP !! '-Wno-deprecated-declarations' needed for auto_ptr
+ gcc_version_specific_warnings := \
+ -Wno-conversion \
+ -Wno-deprecated-declarations \
+ -Wno-parentheses \
+ -Wno-unused-local-typedefs \
+ -Wno-unused-variable \
+
+ cxx_standard := -std=c++11
endif
treat_warnings_as_errors := -pedantic-errors -Werror
@@ -517,10 +532,13 @@
# As this is written in 2012, lmi is often built on machines with less
# RAM per core than gcc wants. Experiments show that these flags cut
# gcc's RAM appetite by fifty percent, in return for a ten-percent
-# speed penalty that can be overcome by increasing parallelism.
+# speed penalty that can be overcome by increasing parallelism. There
+# seems to be no need for them with gcc-4.x, which uses less RAM.
ifeq (gcc,$(toolset))
- ggc_flags := --param ggc-min-expand=25 --param ggc-min-heapsize=32768
+ ifeq (3.4.5,$(gcc_version))
+ ggc_flags := --param ggc-min-expand=25 --param ggc-min-heapsize=32768
+ endif
endif
################################################################################
@@ -645,14 +663,18 @@
CXXFLAGS = \
$(ggc_flags) $(debug_flag) $(optimization_flag) $(gprof_flag) \
+LDFLAGS = \
+ $(gprof_flag) \
+ -Wl,-Map,address@hidden \
+
# Explicitly disable the infelicitous auto-import default. See:
# http://article.gmane.org/gmane.comp.gnu.mingw.user/19758
# [2006-05-18T11:38:01Z from Earnie Boyd]
+# Do not disable it for MinGW-w64, which seems to require it.
-LDFLAGS = \
- $(gprof_flag) \
- -Wl,-Map,address@hidden \
- -Wl,--disable-auto-import \
+ifeq (3.4.5,$(gcc_version))
+ LDFLAGS += -Wl,--disable-auto-import
+endif
ifneq (,$(USE_SO_ATTRIBUTES))
actually_used_lmi_so_attributes = -DLMI_USE_SO_ATTRIBUTES
$(lmi_so_attributes)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6472] Support MinGW-w64 cross compiler,
Greg Chicares <=