From c7981ca306e4dfa2d8a5524b3b2063be8a7a6584 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 6 May 2021 04:26:10 +0000 Subject: link mode: always create libfoo.so.def.{host|flavor} and related tags. --- src/internal/slibtool_symlink_impl.c | 7 ++++++- 1 file changed, 6 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 0b1daa0..bb67623 100644 --- a/src/internal/slibtool_symlink_impl.c +++ b/src/internal/slibtool_symlink_impl.c @@ -28,6 +28,7 @@ int slbt_create_symlink( int fdcwd; int fliteral; int fwrapper; + int fdevnull; char ** oargv; const char * slash; char * ln[5]; @@ -41,9 +42,13 @@ int slbt_create_symlink( /* options */ fliteral = (options & SLBT_SYMLINK_LITERAL); fwrapper = (options & SLBT_SYMLINK_WRAPPER); + fdevnull = (options & SLBT_SYMLINK_DEVNULL); /* symlink is a placeholder? */ - if ((dctx->cctx->drvflags & SLBT_DEV_NULL_FLAGS) + if (fliteral && fdevnull) { + slash = target; + + } else if ((dctx->cctx->drvflags & SLBT_DEV_NULL_FLAGS) && !strcmp(target,"/dev/null")) { slash = target; suffix = ".disabled"; -- cgit v1.2.3