diff options
author | jlam <jlam@pkgsrc.org> | 2003-01-25 07:57:21 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-01-25 07:57:21 +0000 |
commit | 45373af24538cbe6a437c7ac4fcde671d36fc167 (patch) | |
tree | 5f0f18b16f6fc8e1678c9ac66b33040f75e3c4ce /mk | |
parent | 0463145568e1b3dc5556b63c94bc7fb74d3bf815 (diff) | |
download | pkgsrc-45373af24538cbe6a437c7ac4fcde671d36fc167.tar.gz |
Modify code to produce fake libtool archives to check whether the libraries
named using the shell pattern actually exist.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink2/bsd.buildlink2.mk | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk index bd3efc86ab9..41486cc8b7f 100644 --- a/mk/buildlink2/bsd.buildlink2.mk +++ b/mk/buildlink2/bsd.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink2.mk,v 1.78 2003/01/14 09:32:12 jlam Exp $ +# $NetBSD: bsd.buildlink2.mk,v 1.79 2003/01/25 07:57:21 jlam Exp $ # # An example package buildlink2.mk file: # @@ -501,12 +501,14 @@ BUILDLINK_FAKE_LA= ${TRUE} # BUILDLINK_FAKE_LA= \ if [ ! -f $$lafile ]; then \ - ${ECHO_BUILDLINK_MSG} "Creating libtool archive: $$lafile"; \ case ${OBJECT_FMT} in \ - Mach-O) _lib=`${LS} -1 $$libpattern | ${HEAD} -1` ;; \ - *) _lib=`${LS} -1r $$libpattern | ${HEAD} -1` ;; \ + Mach-O) _lib=`${LS} -1 $$libpattern 2>/dev/null | ${HEAD} -1` ;; \ + *) _lib=`${LS} -1r $$libpattern 2>/dev/null | ${HEAD} -1` ;; \ esac; \ - ${_BLNK_FAKE_LA} $$_lib > $$lafile; \ + if [ -n "$$_lib" ]; then \ + ${ECHO_BUILDLINK_MSG} "Creating libtool archive: $$lafile"; \ + ${_BLNK_FAKE_LA} $$_lib > $$lafile; \ + fi; \ fi .endif |