summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-06-22 13:19:05 -0400
committermidipix <writeonce@midipix.org>2018-06-22 13:19:05 -0400
commit88e561cb708235241310f39b4a0f640c4805143e (patch)
tree7de8bcf95a2a2ff46175fc3a4f054442d47cd8fe /src
parent600957a65ae754dfc87d1569556dd22c230597a5 (diff)
downloadslibtool-88e561cb708235241310f39b4a0f640c4805143e.tar.bz2
slibtool-88e561cb708235241310f39b4a0f640c4805143e.tar.xz
driver: compatibility: have -{shared|static} imply -disable-{static|shared}.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 449f63a..77c505a 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -1136,11 +1136,11 @@ int slbt_get_driver_ctx(
break;
case TAG_SHARED:
- cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_STATIC;
+ cctx.drvflags |= SLBT_DRIVER_DISABLE_STATIC;
break;
case TAG_STATIC:
- cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_SHARED;
+ cctx.drvflags |= SLBT_DRIVER_DISABLE_SHARED;
break;
}
}