summaryrefslogtreecommitdiff
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-28 00:00:58 -0400
committermidipix <writeonce@midipix.org>2016-04-28 00:00:58 -0400
commitbfa8ca5c298987a72a421b04d93d434300aeb222 (patch)
treefc10ed1f19675d84a7246cd6ce544cff581610fa /src/driver/slbt_driver_ctx.c
parentb1778b44ef9fab09c4b3b69b363501857ef88b05 (diff)
downloadslibtool-bfa8ca5c298987a72a421b04d93d434300aeb222.tar.bz2
slibtool-bfa8ca5c298987a72a421b04d93d434300aeb222.tar.xz
driver: added -shrext support.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index e97130f..4815d34 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -258,6 +258,10 @@ static int slbt_split_argv(
*targv++ = argv[i++];
*targv++ = argv[i];
+ } else if (!(strcmp("shrext",&argv[i][1]))) {
+ *targv++ = argv[i++];
+ *targv++ = argv[i];
+
} else if (!(strcmp("rpath",&argv[i][1]))) {
*targv++ = argv[i++];
*targv++ = argv[i];
@@ -518,6 +522,9 @@ static void slbt_init_flavor_settings(
}
memcpy(psettings,settings,sizeof(*settings));
+
+ if (cctx->shrext)
+ psettings->dsosuffix = cctx->shrext;
}
static int slbt_init_version_info(
@@ -832,6 +839,10 @@ int slbt_get_driver_ctx(
cctx.output = entry->arg;
break;
+ case TAG_SHREXT:
+ cctx.shrext = entry->arg;
+ break;
+
case TAG_RPATH:
cctx.rpath = entry->arg;
break;