pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Also turn shlibtool into a shell script instead of ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/26d83662ca4f
branches:  trunk
changeset: 467964:26d83662ca4f
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Feb 09 01:52:14 2004 +0000

description:
Also turn shlibtool into a shell script instead of a symlink.  This
duplicates the change made in rev. 1.1368 for libtool.

diffstat:

 mk/bsd.pkg.mk |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r b84520d9da5c -r 26d83662ca4f mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Mon Feb 09 01:30:59 2004 +0000
+++ b/mk/bsd.pkg.mk     Mon Feb 09 01:52:14 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1381 2004/02/09 01:30:59 jlam Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1382 2004/02/09 01:52:14 jlam Exp $
 #
 # This file is in the public domain.
 #
@@ -2407,8 +2407,13 @@
 .    for libtool in ${SHLIBTOOL_OVERRIDE}
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
        if [ -f ${libtool} ]; then                                      \
-               ${RM} -f ${libtool};                                    \
-               ${LN} -sf ${_SHLIBTOOL} ${libtool};                     \
+               (${ECHO} '#!${CONFIG_SHELL}';                           \
+                ${ECHO} 'exec ${_SHLIBTOOL} "$$@"';                    \
+               ) > ${libtool}.override;                                \
+               if [ -x ${libtool} ]; then                              \
+                       ${CHMOD} +x ${libtool}.override;                \
+               fi;                                                     \
+               ${MV} -f ${libtool}.override ${libtool};                \
        fi
 .    endfor
 .  endif



Home | Main Index | Thread Index | Old Index