diff options
author | midipix <writeonce@midipix.org> | 2021-03-21 10:11:47 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-03-21 10:11:47 +0000 |
commit | eecdab621578c060c906da9b863a55e3577ed041 (patch) | |
tree | 06950f7d9e20ee460e8c1daca040cf7410d8f928 /src/driver | |
parent | c04745e1e83115888fc15697b1ca9fdf330b4153 (diff) | |
download | slibtool-eecdab621578c060c906da9b863a55e3577ed041.tar.bz2 slibtool-eecdab621578c060c906da9b863a55e3577ed041.tar.xz |
driver: slbt_init_flavor_settings(): properly handle the -shrext argument.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 4 |
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( |