From 372423a58ff43384ac090c2b572a877c3a0a20a9 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 20 Apr 2016 21:43:20 -0400 Subject: link mode: added -all-static support. --- 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 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; -- cgit v1.2.3