From 55dff8effd97a52e8ec03f75da6c0f420eb0d1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 16 Jun 2000 19:36:25 +0200 Subject: [PATCH] Support for UnixWare. Rev: bin/smartlink:1.26 Rev: src/smartlink.c:1.7 --- bin/smartlink | 5 +++++ src/smartlink.c | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bin/smartlink b/bin/smartlink index 6db0785848..b877a076bd 100755 --- a/bin/smartlink +++ b/bin/smartlink @@ -151,6 +151,11 @@ if test x$# != x0 ; then LDOPTS="$LDOPTS -Wl,-rpath,$RPATH" fi ;; + UnixWare\ 7.*) + if test x$LINKING != xno -a "x$RPATH" != x ; then + LDOPTS="$LDOPTS -YP, $RPATH" + fi + ;; *) LD_LIBRARY_PATH="$RPATH" LD_RUN_PATH="$RPATH" diff --git a/src/smartlink.c b/src/smartlink.c index 21e5c3011c..9535631eb1 100644 --- a/src/smartlink.c +++ b/src/smartlink.c @@ -1,5 +1,5 @@ /* - * $Id: smartlink.c,v 1.6 2000/03/25 22:46:29 hubbe Exp $ + * $Id: smartlink.c,v 1.7 2000/06/16 17:36:25 grubba Exp $ * * smartlink - A smarter linker. * Based on the /bin/sh script smartlink 1.23. @@ -87,7 +87,7 @@ int main(int argc, char **argv) if (!strcmp(argv[1], "-v")) { fprintf(stdout, - "$Id: smartlink.c,v 1.6 2000/03/25 22:46:29 hubbe Exp $\n" + "$Id: smartlink.c,v 1.7 2000/06/16 17:36:25 grubba Exp $\n" "Usage:\n" "\t%s binary [args]\n", argv[0]); @@ -259,6 +259,11 @@ int main(int argc, char **argv) #ifdef USE_RPATH new_argv[new_argc++] = "-rpath"; new_argv[new_argc++] = rpath; +#elif defined(USE_YP_) + if (linking) { + new_argv[new_argc++] = "-YP,"; + new_argv[new_argc++] = rpath; + } #elif defined(USE_Wl) if (linking) { new_argv[new_argc++] = full_rpath; -- GitLab