summaryrefslogtreecommitdiff
path: root/src/internal/slibtool_lconf_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/slibtool_lconf_impl.c')
-rw-r--r--src/internal/slibtool_lconf_impl.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/internal/slibtool_lconf_impl.c b/src/internal/slibtool_lconf_impl.c
index 4956b24..f1747df 100644
--- a/src/internal/slibtool_lconf_impl.c
+++ b/src/internal/slibtool_lconf_impl.c
@@ -806,6 +806,17 @@ int slbt_get_lconf_flags(
}
+ /* as tool (optional) */
+ if (!ctx->cctx.host.as) {
+ if (!slbt_get_lconf_var(addr,cap,"AS=",&val)) {
+ if (val[0] && !(ctx->host.as = strdup(val)))
+ return SLBT_SYSTEM_ERROR(dctx,0);
+
+ ctx->cctx.host.as = ctx->host.as;
+ }
+ }
+
+
/* dlltool tool (optional) */
if (!ctx->cctx.host.dlltool) {
if (!slbt_get_lconf_var(addr,cap,"DLLTOOL=",&val)) {