summaryrefslogtreecommitdiffhomepage
path: root/src/internal/slibtool_lconf_impl.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-26 04:56:18 +0000
committermidipix <writeonce@midipix.org>2024-02-26 05:11:57 +0000
commitb5e10411a1c764c7b7f82b8b1ff093df7546d028 (patch)
tree4bf144d1119ce78f5a045bfe8ba6aa0ed77f6077 /src/internal/slibtool_lconf_impl.c
parent489101c7b5e84298eba80777b0ec22cb39ad11a7 (diff)
downloadslibtool-b5e10411a1c764c7b7f82b8b1ff093df7546d028.tar.bz2
slibtool-b5e10411a1c764c7b7f82b8b1ff093df7546d028.tar.xz
driver: added the --nm switch.
Diffstat (limited to 'src/internal/slibtool_lconf_impl.c')
-rw-r--r--src/internal/slibtool_lconf_impl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/internal/slibtool_lconf_impl.c b/src/internal/slibtool_lconf_impl.c
index f6bfd36..b96e4f9 100644
--- a/src/internal/slibtool_lconf_impl.c
+++ b/src/internal/slibtool_lconf_impl.c
@@ -819,6 +819,19 @@ slbt_hidden int slbt_get_lconf_flags(
}
+ /* nm tool */
+ if (!ctx->cctx.host.nm) {
+ if (slbt_get_lconf_var(confctx,"NM=",0x20,&val) < 0)
+ return SLBT_CUSTOM_ERROR(
+ dctx,SLBT_ERR_LCONF_PARSE);
+
+ if (val[0] && !(ctx->host.nm = strdup(val)))
+ return SLBT_SYSTEM_ERROR(dctx,0);
+
+ ctx->cctx.host.nm = ctx->host.nm;
+ }
+
+
/* ranlib tool */
if (!ctx->cctx.host.ranlib) {
if (slbt_get_lconf_var(confctx,"RANLIB=",0x20,&val) < 0)