From d1e25730ccd03192bee59f8e20d3274ad3acdeb4 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 23 2016 18:28:00 +0000 Subject: slbt_create_symlink(): properly handle -disable-shared. --- 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,'/')))