summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKonstantin Romanov <kromanov1@bloomberg.net>2017-03-31 12:39:11 -0400
committerKonstantin Romanov <kromanov1@bloomberg.net>2017-03-31 13:47:24 -0400
commitbd8674a04102ec57fe7ee0fb8f6fa300f7a67792 (patch)
tree283458d4c0a64dcd3959587d1ad3d9f2a5fbb0b9 /config
parent0aab402e739dad4c79a7c16b7bce38bed3588752 (diff)
downloadocaml-bd8674a04102ec57fe7ee0fb8f6fa300f7a67792.tar.gz
Support for xlc and bytecode shared libs on AIX.
This patch adds support for xlc (IBM C compiler, used on Linux and AIX) in cckind.cc and enables shared libraries support in bytecode compiled programs on AIX. It was tested on Linux/gcc and AIX7.1/xlc 12. By default configure script uses gcc compiler, so there should be no impact on Linux/xlc systems. To use xlc one should run configure with -cc xlc.
Diffstat (limited to 'config')
-rw-r--r--config/auto-aux/cckind.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/auto-aux/cckind.c b/config/auto-aux/cckind.c
index 7277a7ad66..203f701f85 100644
--- a/config/auto-aux/cckind.c
+++ b/config/auto-aux/cckind.c
@@ -25,6 +25,8 @@ icc __INTEL_COMPILER
clang __clang_major__ __clang_minor__
#elif defined(__GNUC__) && defined(__GNUC_MINOR__)
gcc __GNUC__ __GNUC_MINOR__
+#elif defined(__xlc__) && (__xlC__)
+xlc __xlC__ __xlC_ver__
#else
unknown
#endif