Mercurial > hg > graal-compiler
diff make/bsd/makefiles/universal.gmk @ 4886:64b46f975ab8 hs23-b14
7142616: MAC: Honor ALT_EXPORT_PATH overrides from JDK control builds
Summary: Fix EXPORT_PATH overrides on Mac OS X and only change default.
Reviewed-by: phh, dcubed
Contributed-by: james.melvin@oracle.com
author | phh |
---|---|
date | Mon, 06 Feb 2012 14:02:51 -0500 |
parents | 481a9443f721 |
children | 74533f63b116 |
line wrap: on
line diff
--- a/make/bsd/makefiles/universal.gmk Mon Feb 06 14:01:53 2012 -0500 +++ b/make/bsd/makefiles/universal.gmk Mon Feb 06 14:02:51 2012 -0500 @@ -62,10 +62,14 @@ # Copy built non-universal binaries in place $(UNIVERSAL_COPY_LIST): - BUILT_COPY_FILE="$(EXPORT_JRE_LIB_DIR)/i386/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)"; \ - if [ -f $${BUILT_COPY_FILE} ]; then \ - $(MKDIR) -p $(shell dirname $@); \ - $(CP) $${BUILT_COPY_FILE} $@; \ + BUILT_COPY_FILES="`find $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@) 2>/dev/null`"; \ + if [ -n "$${BUILT_COPY_FILES}" ]; then \ + for i in $${BUILT_COPY_FILES}; do \ + if [ -f $${i} ]; then \ + $(MKDIR) -p $(shell dirname $@); \ + $(CP) $${i} $@; \ + fi; \ + done; \ fi