summaryrefslogtreecommitdiff
path: root/mk/platform/UnixWare.mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-03-18 18:16:34 +0000
committertv <tv@pkgsrc.org>2005-03-18 18:16:34 +0000
commitb46a7543a3014a232c8826bd855b0481d5f7995a (patch)
tree5147a40e92074d16fee67bfab7670e3b69d7b28a /mk/platform/UnixWare.mk
parent447770bff046561280ea20cb131b39334aa7d111 (diff)
downloadpkgsrc-b46a7543a3014a232c8826bd855b0481d5f7995a.tar.gz
Fix a gleaming illustration of why using YES/NO variables everywhere
possible, just for the sake of doing so, is not a good thing to do: The platform files define _STRIPFLAG_* to determine whether to strip things. But since this is included in bsd.prefs.mk, ".if ..." checks cannot take things set in the Makefile into account. So convert INSTALL_UNSTRIPPED=YES to a defined/undefined variable check in bsd.pkg.mk, and use the :D:U idiom in the _STRIPFLAG_* variables. This should fix PR pkg/28772 and PR pkg/29031.
Diffstat (limited to 'mk/platform/UnixWare.mk')
-rw-r--r--mk/platform/UnixWare.mk9
1 files changed, 3 insertions, 6 deletions
diff --git a/mk/platform/UnixWare.mk b/mk/platform/UnixWare.mk
index ac136bc3875..667e86bc666 100644
--- a/mk/platform/UnixWare.mk
+++ b/mk/platform/UnixWare.mk
@@ -1,4 +1,4 @@
-# $NetBSD: UnixWare.mk,v 1.7 2005/01/28 21:05:59 jlam Exp $
+# $NetBSD: UnixWare.mk,v 1.8 2005/03/18 18:16:35 tv Exp $
#
# Variable definitions for the UnixWare 7 operating system.
@@ -146,11 +146,8 @@ _OPSYS_NO_WHOLE_ARCHIVE_FLAG=
# incompatible.
_INCOMPAT_ICONV= UnixWare-*-*
-# XXX Where are those variables used?
-.if (!defined(INSTALL_UNSTRIPPED) || empty(INSTALL_UNSTRIPPED:M[yY][eE][sS])) && !defined(DEBUG_FLAGS)
-_STRIPFLAG_CC?= # cc(1) option to strip
-_STRIPFLAG_INSTALL?= # install(1) option to strip
-.endif
+_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U} # cc(1) option to strip
+_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip
LOCALBASE?= ${DESTDIR}/usr/pkg