From d1e25730ccd03192bee59f8e20d3274ad3acdeb4 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 23 Apr 2016 13:04:48 -0400 Subject: slbt_create_symlink(): properly handle -disable-shared. --- src/internal/slibtool_symlink_impl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/internal/slibtool_symlink_impl.c') 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,'/'))) -- cgit v1.2.3