summaryrefslogtreecommitdiff
path: root/src/internal/slibtool_symlink_impl.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-03 21:49:15 +0000
committermidipix <writeonce@midipix.org>2024-03-04 03:28:57 +0000
commit93e38b3566a587e0aec3c46de85abf28f82614ac (patch)
tree3a77ce8c94a2f6fffc1606def23b88a859e42c9b /src/internal/slibtool_symlink_impl.c
parenta3e2d3ae686409f59f7470ae1898f96e1c9df453 (diff)
downloadslibtool-93e38b3566a587e0aec3c46de85abf28f82614ac.tar.bz2
slibtool-93e38b3566a587e0aec3c46de85abf28f82614ac.tar.xz
link mode: unless created for the current .la, mark the .a or .so as disabled.
Diffstat (limited to 'src/internal/slibtool_symlink_impl.c')
-rw-r--r--src/internal/slibtool_symlink_impl.c10
1 files changed, 3 insertions, 7 deletions
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++;