m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 5/6] configury: avoid version-info for modules on OS/2


From: KO Myung-Hun
Subject: [PATCH 5/6] configury: avoid version-info for modules on OS/2
Date: Wed, 19 Nov 2014 13:06:50 +0900

OS/2 does not create a link without version-info to DLLs with
version-info. However, m4 tries to load modules without version-info,
so m4 cannot load those modules.

* Makefile.am (module_ldflags): Add -avoid-version on OS/2.
* configure.ac (HAVE_OS2): Define it on OS/2.
---
 Makefile.am  | 3 +++
 configure.ac | 1 +
 2 files changed, 4 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index c752ff2..684da6c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -148,6 +148,9 @@ MOSTLYCLEANFILES += src/getopt.h src/getopt.h-t
 ## -------- ##
 
 module_ldflags = -module $(AM_LDFLAGS)
+if HAVE_OS2
+module_ldflags += -avoid-version
+endif
 module_libadd  = m4/libm4.la
 
 noinst_HEADERS = modules/m4.h
diff --git a/configure.ac b/configure.ac
index 81894c3..4b9c65b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -276,6 +276,7 @@ M4_SYSCMD
 
 
 AS_CASE([$host], [*-*-os2*], [LDFLAGS="$LDFLAGS -Zargs-resp -no-undefined"])
+AM_CONDITIONAL([HAVE_OS2], [test "${host_os#os2}" != "$host_os"])
 
 
 ## -------- ##
-- 
1.8.5.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]