summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-20 21:43:20 -0400
committermidipix <writeonce@midipix.org>2016-04-21 16:39:56 -0400
commit372423a58ff43384ac090c2b572a877c3a0a20a9 (patch)
tree599210f3601e83de26a2c6667a241aa2277fdc97 /src/internal
parentf7645c9729a4776529a40bef24a11e3bcd921508 (diff)
downloadslibtool-372423a58ff43384ac090c2b572a877c3a0a20a9.tar.bz2
slibtool-372423a58ff43384ac090c2b572a877c3a0a20a9.tar.xz
link mode: added -all-static support.
Diffstat (limited to 'src/internal')
-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;