summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-07-19 01:17:46 +0000
committermidipix <writeonce@midipix.org>2024-07-19 01:34:48 +0000
commit99a62b114b0f32b3c4a46f18dbfe22fe33405dab (patch)
treea426f880570cff5400f404293ba8039a6393fa76
parent979507dfb71780d8ac2bd393d4e914e5578900f9 (diff)
downloadslibtool-99a62b114b0f32b3c4a46f18dbfe22fe33405dab.tar.bz2
slibtool-99a62b114b0f32b3c4a46f18dbfe22fe33405dab.tar.xz
slibtool.m4: slibtool_set_flavor(): define shared and static suffix variables.
-rw-r--r--m4/slibtool.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index bf1c4e1..e2e6ad5 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -260,6 +260,17 @@ slibtool_set_flavor()
enable_win32_dll=${slibtool_enable_win32_dll}
enable_fast_install=${slibtool_enable_fast_install}
pic_mode=${slibtool_pic_mode}
+
+ # suffix variables
+ if [[ -n "${host}" ]]; then
+ shrext_cmds="$($_slibtool -print-shared-ext --host=${host})"
+ libext="$($_slibtool -print-static-ext --host=${host})"
+ libext="${libext#[.]}"
+ else
+ shrext_cmds="$($_slibtool -print-shared-ext)"
+ libext="$($_slibtool -print-static-ext)"
+ libext="${libext#[.]}"
+ fi
}
])