mirror of
https://github.com/golang/go
synced 2024-11-12 04:30:22 -07:00
fix build:
install runtime lib in correct location. fix one bad type definition in defs.h. clear out $GOROOT/lib in clean.bash. TBR=r OCL=26691 CL=26691
This commit is contained in:
parent
80f4ab47ee
commit
85e014a27e
@ -4,6 +4,7 @@
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
rm -f $GOROOT/pkg/*.[6a]
|
||||
rm -f $GOROOT/lib/*.[6a]
|
||||
for i in lib9 libbio libmach_amd64 libregexp cmd runtime lib
|
||||
do
|
||||
cd $i
|
||||
|
@ -26,6 +26,7 @@ OFILES=\
|
||||
mfixalloc.$O\
|
||||
mgc0.$O\
|
||||
mheap.$O\
|
||||
mheapmap64.$O\
|
||||
msize.$O\
|
||||
print.$O\
|
||||
proc.$O\
|
||||
@ -49,7 +50,7 @@ HFILES=\
|
||||
$(GOOS)/$(GOARCH)/defs.h\
|
||||
|
||||
install: $(LIB) runtime.acid
|
||||
cp $(LIB) $(GOROOT)/lib_$(GOARCH)_$(GOOS).a
|
||||
cp $(LIB) $(GOROOT)/lib/lib_$(GOARCH)_$(GOOS).a
|
||||
cp runtime.acid $(GOROOT)/acid/runtime.acid
|
||||
|
||||
$(LIB): $(OFILES)
|
||||
|
@ -80,9 +80,9 @@ typedef struct MachPort MachPort;
|
||||
struct MachPort {
|
||||
uint32 name;
|
||||
uint32 pad1;
|
||||
uint32 pad2;
|
||||
uint32 disposition;
|
||||
uint32 type;
|
||||
uint16 pad2;
|
||||
uint8 disposition;
|
||||
uint8 type;
|
||||
};
|
||||
|
||||
typedef struct StackT StackT;
|
||||
|
@ -55,7 +55,7 @@ sighandler(int32 sig, Siginfo *info, void *context)
|
||||
r = &mc->ss;
|
||||
|
||||
printf("Faulting address: %p\n", info->si_addr);
|
||||
printf("PC=%X\n", r->rip);
|
||||
printf("pc: %X\n", r->rip);
|
||||
printf("\n");
|
||||
|
||||
if(gotraceback()){
|
||||
|
Loading…
Reference in New Issue
Block a user