summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-23 13:04:48 -0400
committermidipix <writeonce@midipix.org>2016-04-23 14:28:00 -0400
commitd1e25730ccd03192bee59f8e20d3274ad3acdeb4 (patch)
tree849e42f1288422e1a7a1d8229770e5da68e75878 /src
parent10063db4683335c93a7cd8f4fca61de2c370d96b (diff)
downloadslibtool-d1e25730ccd03192bee59f8e20d3274ad3acdeb4.tar.bz2
slibtool-d1e25730ccd03192bee59f8e20d3274ad3acdeb4.tar.xz
slbt_create_symlink(): properly handle -disable-shared.
Diffstat (limited to 'src')
-rw-r--r--src/internal/slibtool_symlink_impl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/internal/slibtool_symlink_impl.c b/src/internal/slibtool_symlink_impl.c
index f1af5d4..4c4cceb 100644
--- a/src/internal/slibtool_symlink_impl.c
+++ b/src/internal/slibtool_symlink_impl.c
@@ -11,6 +11,9 @@
#include "slibtool_symlink_impl.h"
+#define SLBT_DEV_NULL_FLAGS (SLBT_DRIVER_ALL_STATIC \
+ | SLBT_DRIVER_DISABLE_SHARED)
+
int slbt_create_symlink(
const struct slbt_driver_ctx * dctx,
struct slbt_exec_ctx * ectx,
@@ -27,7 +30,7 @@ int slbt_create_symlink(
char atarget[PATH_MAX];
/* atarget */
- if ((dctx->cctx->drvflags & SLBT_DRIVER_ALL_STATIC)
+ if ((dctx->cctx->drvflags & SLBT_DEV_NULL_FLAGS)
&& !strcmp(target,"/dev/null"))
slash = target;
else if ((slash = strrchr(target,'/')))