[LIBGPG-ERROR PATCH] doc: use compiler flags for yat2m when not cross-built.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Feb 6 03:53:30 CET 2018


* doc/Makefile.am (yat2m): use standard compiler flags when not
cross-building.
--

We ship yat2m when not cross-building.  This means that yat2m ought to
be built with the same flags that other native tools are built with.

Signed-off-by: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
---
 doc/Makefile.am | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index d052283..b82d7bf 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -35,8 +35,13 @@ myman_pages   = gpg-error-config.1
 man_MANS = $(myman_pages)
 
 yat2m: yat2m.c
+if CROSS_COMPILING
 	$(CC_FOR_BUILD) -DPACKAGE_VERSION="\"$(PACKAGE_VERSION)\"" \
                 -o $@ $(srcdir)/yat2m.c
+else
+	$(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -DPACKAGE_VERSION="\"$(PACKAGE_VERSION)\"" \
+                -o $@ $(srcdir)/yat2m.c
+endif
 
 
 yat2m-stamp: $(myman_sources)
-- 
2.15.1




More information about the Gnupg-devel mailing list