summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/internal/slibtool_lconf_impl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/internal/slibtool_lconf_impl.c b/src/internal/slibtool_lconf_impl.c
index 5106d39..b1bde60 100644
--- a/src/internal/slibtool_lconf_impl.c
+++ b/src/internal/slibtool_lconf_impl.c
@@ -786,8 +786,10 @@ int slbt_get_lconf_flags(
return SLBT_CUSTOM_ERROR(
dctx,SLBT_ERR_LCONF_PARSE);
- if (val[0] && !(ctx->cctx.host.ar = strdup(val)))
+ if (val[0] && !(ctx->host.ar = strdup(val)))
return SLBT_SYSTEM_ERROR(dctx,0);
+
+ ctx->cctx.host.ar = ctx->host.ar;
}
@@ -797,8 +799,10 @@ int slbt_get_lconf_flags(
return SLBT_CUSTOM_ERROR(
dctx,SLBT_ERR_LCONF_PARSE);
- if (val[0] && !(ctx->cctx.host.ranlib = strdup(val)))
+ if (val[0] && !(ctx->host.ranlib = strdup(val)))
return SLBT_SYSTEM_ERROR(dctx,0);
+
+ ctx->cctx.host.ranlib = ctx->host.ranlib;
}