On Sat, 19 Aug 2017, JonY via Mingw-w64-public wrote:

On 08/18/2017 07:57 PM, Martin Storsjö wrote:
Signed-off-by: Martin Storsjö <mar...@martin.st>
---
Updated with the new parameters.
---
 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 990e883..4e3dfc9 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 -undef -P 
-I$(top_srcdir)/def-include > $@

+lib32/%.def: lib-common/%.def.in
+       $(MKDIR_P) $(@D) && $(CPP) -x c $< -Wp,-w -undef -P 
-I$(top_srcdir)/def-include -DDEF_I386 > $@
+
+lib64/%.def: lib-common/%.def.in
+       $(MKDIR_P) $(@D) && $(CPP) -x c $< -Wp,-w -undef -P 
-I$(top_srcdir)/def-include -DDEF_X64 > $@
+
+libarm32/%.def: lib-common/%.def.in
+       $(MKDIR_P) $(@D) && $(CPP) -x c $< -Wp,-w -undef -P 
-I$(top_srcdir)/def-include -DDEF_ARM32 > $@
+

Shouldn't it be -Wp,-w,-undef,-P?

According to https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html, both -undef and -P are options in the gcc frontend driver itself, just like -E. The underlying parameter interface to the preprocessor, used via -Wp is undocumented.

// 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