From 0ea9ccbb6e77ade9956d951cd2d206ef67acd2c3 Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Wed, 19 Nov 2014 14:58:22 +0000 Subject: configury: add -Zargs-resp to LDFLAGS on OS/2. -Zargs-resp enables a response file support on OS/2. * configure.ac (OS2_LDFLAGS): Add -Zargs-resp on *-*-os2*. * Makefile.am (AM_LDFLAGS): Add OS2_LDFLAGS. Signed-off-by: Gary V. Vaughan --- Makefile.am | 1 + configure.ac | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 08a2d393..6cf5ea75 100644 --- a/Makefile.am +++ b/Makefile.am @@ -63,6 +63,7 @@ EXTRA_LTLIBRARIES= # given in build-aux/git-version-gen. AM_CPPFLAGS += -Im4/gnu -I$(srcdir)/m4/gnu \ -Im4 -I$(srcdir)/m4 +AM_LDFLAGS += $(OS2_LDFLAGS) EXTRA_DIST += bootstrap cfg.mk maint.mk .version .prev-version \ $(config_macro_dir)/gnulib-cache.m4 $(gitlog_to_changelog) BUILT_SOURCES += .version diff --git a/configure.ac b/configure.ac index 2fe6d9e8..a219665f 100644 --- a/configure.ac +++ b/configure.ac @@ -164,6 +164,7 @@ case "$CFLAGS" in ;; esac + ## ------------------------------- ## ## Preloaded module configuration. ## ## ------------------------------- ## @@ -213,7 +214,6 @@ AM_GNU_GETTEXT_VERSION([0.16]) M4_GNU_GETTEXT - ## --------------- ## ## Gnulib support. ## ## --------------- ## @@ -235,6 +235,8 @@ M4_RENAME AC_TYPE_SIZE_T AC_CHECK_SIZEOF([long long int]) +AS_CASE([$host], [*-*-os2*], [OS2_LDFLAGS=-Zargs-resp]) +AC_SUBST([OS2_LDFLAGS]) ## ------------------------- ## @@ -250,7 +252,6 @@ fi AC_SUBST([INCLUDE_STDBOOL_H]) - ## --------------------------------- ## ## Library functions required by M4. ## ## --------------------------------- ## -- cgit v1.2.1