summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index ab26586..fde8905 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -28,7 +28,7 @@ extra_cppflags = -idirafter gpg-extra
else
if HAVE_ANDROID_SYSTEM
gpg_extra_headers =
-extra_cppflags = -I$(SYSROOT)/usr/include
+extra_cppflags =
else
gpg_extra_headers =
extra_cppflags =
@@ -143,7 +143,8 @@ code-to-errno.h: Makefile mkerrnos.awk errnos.in
# It is correct to use $(CPP). We want the host's idea of the error codes.
mkerrcodes.h: Makefile mkerrcodes.awk $(gpg_extra_headers)
$(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@
- $(CPP) $(extra_cppflags) _$@ | grep GPG_ERR_ | \
+ $(CPP) $(CFLAGS) $(extra_cppflags) _$@ | \
+ grep GPG_ERR_ | \
$(AWK) -f $(srcdir)/mkerrcodes.awk >$@
-rm _$@