comparison make/solaris/makefiles/defs.make @ 6096:fb8f9ab27c14

Merge
author dcubed
date Thu, 24 May 2012 12:57:01 -0700
parents 80b9cc90b643 9c1709c4c80c
children 7de1d3b57419
comparison
equal deleted inserted replaced
6094:df84b4a3ebcb 6096:fb8f9ab27c14
121 # since objcopy is optional, we set ZIP_DEBUGINFO_FILES later 121 # since objcopy is optional, we set ZIP_DEBUGINFO_FILES later
122 122
123 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) 123 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
124 # Default OBJCOPY comes from the SUNWbinutils package: 124 # Default OBJCOPY comes from the SUNWbinutils package:
125 DEF_OBJCOPY=/usr/sfw/bin/gobjcopy 125 DEF_OBJCOPY=/usr/sfw/bin/gobjcopy
126 ifeq ($(VM_PLATFORM),solaris_amd64) 126 OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY))
127 # On Solaris AMD64/X64, gobjcopy is not happy and fails: 127 ifneq ($(ALT_OBJCOPY),)
128 # 128 _JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)")
129 # usr/sfw/bin/gobjcopy --add-gnu-debuglink=<lib>.debuginfo <lib>.so 129 OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY))
130 # BFD: stKPaiop: Not enough room for program headers, try linking with -N
131 # /usr/sfw/bin/gobjcopy: stKPaiop: Bad value
132 # BFD: stKPaiop: Not enough room for program headers, try linking with -N
133 # /usr/sfw/bin/gobjcopy: libsaproc.debuginfo: Bad value
134 # BFD: stKPaiop: Not enough room for program headers, try linking with -N
135 # /usr/sfw/bin/gobjcopy: stKPaiop: Bad value
136 _JUNK_ := $(shell \
137 echo >&2 "INFO: $(DEF_OBJCOPY) is not working on Solaris AMD64/X64")
138 OBJCOPY=
139 else
140 OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY))
141 ifneq ($(ALT_OBJCOPY),)
142 _JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)")
143 OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY))
144 endif
145 endif 130 endif
146 else 131 else
147 OBJCOPY= 132 OBJCOPY=
148 endif 133 endif
149 134