1.1 --- a/make/bsd/makefiles/product.make Mon Oct 14 21:52:42 2013 -0400 1.2 +++ b/make/bsd/makefiles/product.make Tue Oct 15 08:25:43 2013 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 # 1.5 -# Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 +# Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 # 1.9 # This code is free software; you can redistribute it and/or modify it 1.10 @@ -43,15 +43,17 @@ 1.11 SYSDEFS += -DPRODUCT 1.12 VERSION = optimized 1.13 1.14 -# use -g to strip library as -x will discard its symbol table; -x is fine for 1.15 -# executables. 1.16 -ifdef CROSS_COMPILE_ARCH 1.17 - STRIP = $(ALT_COMPILER_PATH)/strip 1.18 -else 1.19 - STRIP = strip 1.20 +ifneq ($(OS_VENDOR), Darwin) 1.21 + # use -g to strip library as -x will discard its symbol table; -x is fine for 1.22 + # executables. 1.23 + ifdef CROSS_COMPILE_ARCH 1.24 + STRIP = $(ALT_COMPILER_PATH)/strip 1.25 + else 1.26 + STRIP = strip 1.27 + endif 1.28 + STRIP_LIBJVM = $(STRIP) -g $@ || exit 1; 1.29 + STRIP_AOUT = $(STRIP) -x $@ || exit 1; 1.30 + 1.31 + # Don't strip in VM build; JDK build will strip libraries later 1.32 + # LINK_LIB.CXX/POST_HOOK += $(STRIP_$(LINK_INTO)) 1.33 endif 1.34 -STRIP_LIBJVM = $(STRIP) -g $@ || exit 1; 1.35 -STRIP_AOUT = $(STRIP) -x $@ || exit 1; 1.36 - 1.37 -# Don't strip in VM build; JDK build will strip libraries later 1.38 -# LINK_LIB.CXX/POST_HOOK += $(STRIP_$(LINK_INTO))