On Fri, 18 Aug 2017, JonY via Mingw-w64-public wrote:

On 08/17/2017 12:14 PM, Martin Storsjö wrote:
Signed-off-by: Martin Storsjö <mar...@martin.st>
---
 mingw-w64-crt/Makefile.am             | 10 +++++++++
 mingw-w64-crt/def-include/func.def.in | 42 +++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 mingw-w64-crt/def-include/func.def.in

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index b6c0f43..2d33152 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -1244,6 +1244,15 @@ endif
 %.def: %.def.in
        $(MKDIR_P) $(@D) && $(CPP) -x c $< -Wp,-w -I$(top_srcdir)/def-include | 
$(SED) 's/^#/;/' > $@

+lib32/%.def: lib-common/%.def.in
+       $(MKDIR_P) $(@D) && $(CPP) -x c $< -Wp,-w -I$(top_srcdir)/def-include 
-DDEF_I386 | $(SED) 's/^#/;/' > $@
+
+lib64/%.def: lib-common/%.def.in
+       $(MKDIR_P) $(@D) && $(CPP) -x c $< -Wp,-w -I$(top_srcdir)/def-include 
-DDEF_X64 | $(SED) 's/^#/;/' > $@
+
+libarm32/%.def: lib-common/%.def.in
+       $(MKDIR_P) $(@D) && $(CPP) -x c $< -Wp,-w -I$(top_srcdir)/def-include 
-DDEF_ARM32 | $(SED) 's/^#/;/' > $@
+

Add -Wp,-P,-undef? Why -w to suppress warnings?

I was just copying the existing preprocessing line right above (that only picks the source from the same directory).

Those options would indeed make sense (and would probably even get rid of the extra SED command).

I can try to make such a change for the existing line, and then once that's ok update this commit to match that.

// Martin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to