[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
- [PATCH] OS/2 patches for master branch, KO Myung-Hun, 2014/11/18
- [PATCH 1/6] bootstrap: set and use PATH_SEPARATOR, KO Myung-Hun, 2014/11/18
- [PATCH 5/6] configury: avoid version-info for modules on OS/2,
KO Myung-Hun <=
- [PATCH 4/6] configure: add -Zargs-resp and -no-undefined to LDFLAGS on OS/2, KO Myung-Hun, 2014/11/18
- [PATCH 3/6] m4: support to load modules on OS/2, KO Myung-Hun, 2014/11/18
- [PATCH 2/6] m4-syscmd: append $EXEEXT suffix to the executable, /bin/sh, KO Myung-Hun, 2014/11/18
- [PATCH 6/6] esyscmd: fdopen() in text mode explicitly on OS/2, KO Myung-Hun, 2014/11/18