diff options
author | Werner Koch <[email protected]> | 2025-06-18 08:38:10 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-08-14 15:04:08 +0000 |
commit | 7ee191f54c2a830767207fb6563380a87f60ddf0 (patch) | |
tree | 949bc6da1ce9e7f41fec70e26202cb9cfc6da166 | |
parent | syscfg: Add x86_64 Android arch. (diff) | |
download | libgpg-error-7ee191f54c2a830767207fb6563380a87f60ddf0.tar.gz libgpg-error-7ee191f54c2a830767207fb6563380a87f60ddf0.zip |
Set build specific variable for zOS
* configure.ac (EXTRA_LIBS_FOR_BUILD): New ac_subst.
* src/Makefile.am (mkheader): Append that var to the rule.
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | src/Makefile.am | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 83a52a4..d26c852 100644 --- a/configure.ac +++ b/configure.ac @@ -142,6 +142,17 @@ case "${host}" in ;; esac +# Set some variables for building build platform helpers. +case "$build_os" in + *zOS*) + EXTRA_LIBS_FOR_BUILD=zoslib + ;; + *) + EXTRA_LIBS_FOR_BUILD= + ;; +esac +AC_SUBST(EXTRA_LIBS_FOR_BUILD) + if test "$have_w32_system" != yes; then gl_THREADLIB_EARLY diff --git a/src/Makefile.am b/src/Makefile.am index ecea540..6a3b5e4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -278,7 +278,8 @@ errnos-sym.h: Makefile mkstrtable.awk errnos.in mkheader$(EXEEXT_FOR_BUILD): mkheader.c Makefile $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \ - $(CPPFLAGS_FOR_BUILD) -g -I. -I$(srcdir) -o $@ $(srcdir)/mkheader.c + $(CPPFLAGS_FOR_BUILD) -g -I. -I$(srcdir) \ + -o $@ $(srcdir)/mkheader.c $(EXTRA_LIBS_FOR_BUILD) parts_of_gpg_error_h = \ gpg-error.h.in \ |