109 # since objcopy is optional, we set ZIP_DEBUGINFO_FILES later |
109 # since objcopy is optional, we set ZIP_DEBUGINFO_FILES later |
110 |
110 |
111 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
111 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
112 # Default OBJCOPY comes from the SUNWbinutils package: |
112 # Default OBJCOPY comes from the SUNWbinutils package: |
113 DEF_OBJCOPY=/usr/sfw/bin/gobjcopy |
113 DEF_OBJCOPY=/usr/sfw/bin/gobjcopy |
114 ifeq ($(VM_PLATFORM),solaris_amd64) |
114 OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY)) |
115 # On Solaris AMD64/X64, gobjcopy is not happy and fails: |
115 ifneq ($(ALT_OBJCOPY),) |
116 # |
116 _JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)") |
117 # usr/sfw/bin/gobjcopy --add-gnu-debuglink=<lib>.debuginfo <lib>.so |
117 OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY)) |
118 # BFD: stKPaiop: Not enough room for program headers, try linking with -N |
|
119 # /usr/sfw/bin/gobjcopy: stKPaiop: Bad value |
|
120 # BFD: stKPaiop: Not enough room for program headers, try linking with -N |
|
121 # /usr/sfw/bin/gobjcopy: libsaproc.debuginfo: Bad value |
|
122 # BFD: stKPaiop: Not enough room for program headers, try linking with -N |
|
123 # /usr/sfw/bin/gobjcopy: stKPaiop: Bad value |
|
124 _JUNK_ := $(shell \ |
|
125 echo >&2 "INFO: $(DEF_OBJCOPY) is not working on Solaris AMD64/X64") |
|
126 OBJCOPY= |
|
127 else |
|
128 OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY)) |
|
129 ifneq ($(ALT_OBJCOPY),) |
|
130 _JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)") |
|
131 OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY)) |
|
132 endif |
|
133 endif |
118 endif |
134 else |
119 else |
135 OBJCOPY= |
120 OBJCOPY= |
136 endif |
121 endif |
137 |
122 |