summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-03-21 10:11:47 +0000
committermidipix <writeonce@midipix.org>2021-03-21 10:11:47 +0000
commiteecdab621578c060c906da9b863a55e3577ed041 (patch)
tree06950f7d9e20ee460e8c1daca040cf7410d8f928 /src
parentc04745e1e83115888fc15697b1ca9fdf330b4153 (diff)
downloadslibtool-eecdab621578c060c906da9b863a55e3577ed041.tar.bz2
slibtool-eecdab621578c060c906da9b863a55e3577ed041.tar.xz
driver: slbt_init_flavor_settings(): properly handle the -shrext argument.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 4812076..7e170d2 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -1005,7 +1005,6 @@ static void slbt_init_flavor_settings(
{
const struct slbt_host_params * host;
const struct slbt_flavor_settings * settings;
- const char * dot;
host = ahost ? ahost : &cctx->host;
@@ -1032,8 +1031,7 @@ static void slbt_init_flavor_settings(
memcpy(psettings,settings,sizeof(*settings));
if (cctx->shrext)
- psettings->dsosuffix = (dot = strrchr(cctx->shrext,'.'))
- ? dot : cctx->shrext;
+ psettings->dsosuffix = cctx->shrext;
}
static int slbt_init_ldrpath(