summaryrefslogtreecommitdiff
path: root/src/internal/slibtool_symlink_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/slibtool_symlink_impl.c')
-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 db72feb..f1af5d4 100644
--- a/src/internal/slibtool_symlink_impl.c
+++ b/src/internal/slibtool_symlink_impl.c
@@ -27,7 +27,10 @@ int slbt_create_symlink(
char atarget[PATH_MAX];
/* atarget */
- if ((slash = strrchr(target,'/')))
+ if ((dctx->cctx->drvflags & SLBT_DRIVER_ALL_STATIC)
+ && !strcmp(target,"/dev/null"))
+ slash = target;
+ else if ((slash = strrchr(target,'/')))
slash++;
else
slash = target;