From 93e38b3566a587e0aec3c46de85abf28f82614ac Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 3 Mar 2024 21:49:15 +0000 Subject: link mode: unless created for the current .la, mark the .a or .so as disabled. --- src/internal/slibtool_symlink_impl.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (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 a788800..34661f0 100644 --- a/src/internal/slibtool_symlink_impl.c +++ b/src/internal/slibtool_symlink_impl.c @@ -47,18 +47,14 @@ slbt_hidden int slbt_create_symlink( fdevnull = (options & SLBT_SYMLINK_DEVNULL); /* symlink is a placeholder? */ - if (fliteral && fdevnull) { + if (fliteral) { slash = target; - } else if ((dctx->cctx->drvflags & SLBT_DEV_NULL_FLAGS) - && !strcmp(target,"/dev/null")) { + /* .disabled .so or .a file */ + } else if (fdevnull) { slash = target; suffix = ".disabled"; - /* target is an absolute path? */ - } else if (fliteral) { - slash = target; - /* symlink target contains a dirname? */ } else if ((slash = strrchr(target,'/'))) { slash++; -- cgit v1.2.3