summaryrefslogtreecommitdiff
path: root/mk/platform/AIX.mk
diff options
context:
space:
mode:
authortv <tv>2005-03-18 18:16:34 +0000
committertv <tv>2005-03-18 18:16:34 +0000
commit4a6d5dca94ccf5b8fd44dfa2e3735484379786c7 (patch)
tree5147a40e92074d16fee67bfab7670e3b69d7b28a /mk/platform/AIX.mk
parent6ed8b87fd558bc1cdd1121dab3226e51ccd2b5aa (diff)
downloadpkgsrc-4a6d5dca94ccf5b8fd44dfa2e3735484379786c7.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/AIX.mk')
-rw-r--r--mk/platform/AIX.mk8
1 files changed, 3 insertions, 5 deletions
diff --git a/mk/platform/AIX.mk b/mk/platform/AIX.mk
index 9cc0db6b916..3fd18fe2f9e 100644
--- a/mk/platform/AIX.mk
+++ b/mk/platform/AIX.mk
@@ -1,4 +1,4 @@
-# $NetBSD: AIX.mk,v 1.11 2005/03/12 20:03:38 garbled Exp $
+# $NetBSD: AIX.mk,v 1.12 2005/03/18 18:16:35 tv Exp $
#
# Variable definitions for the AIX operating system.
@@ -169,10 +169,8 @@ _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
LINK_ALL_LIBGCC_HACK= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive
.endif
-.if (!defined(INSTALL_UNSTRIPPED) || empty(INSTALL_UNSTRIPPED:M[yY][eE][sS])) && !defined(DEBUG_FLAGS)
-_STRIPFLAG_CC?= -s # cc(1) option to strip
-_STRIPFLAG_INSTALL?= -s # install(1) option to strip
-.endif
+_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
+_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
DEFAULT_SERIAL_DEVICE?= /dev/tty0
SERIAL_DEVICES?= /dev/tty0 \