diff options
author | midipix <writeonce@midipix.org> | 2016-04-20 21:43:20 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-21 16:39:56 -0400 |
commit | 372423a58ff43384ac090c2b572a877c3a0a20a9 (patch) | |
tree | 599210f3601e83de26a2c6667a241aa2277fdc97 /src/internal | |
parent | f7645c9729a4776529a40bef24a11e3bcd921508 (diff) | |
download | slibtool-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.c | 5 |
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; |