[Rainer Orth] Re: [build] Support libgo on Solaris 2
Ian Lance Taylor
iant@google.com
Thu Jan 13 08:42:00 GMT 2011
> From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
> Date: Mon, 10 Jan 2011 16:23:05 +0100
> 2011-01-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>
> gcc:
> * configure.ac (gcc_cv_ld_static_dynamic): Enable on *-*-solaris2*.
> * configure: Regenerate:
>
> gcc/testsuite:
> * go.test/go-test.exp (go-set-goarch): New proc.
> (go-gc-tests): Use it.
>
> libgo:
> * configure.ac (ECHO): Substitute.
> (LIBGO_IS_SOLARIS): New conditional.
> Sort os cases.
> Handle i[34567]86-*-* multilibs.
> Sort arch cases.
> (LIBGO_IS_SPARC): New conditional.
> (LIBGO_IS_SPARCV9): New conditional.
> (NET_LIBS): Check for -lsocket -lnsl.
> * Makefile.am: Handle LIBGO_IS_SOLARIS for OS-dependent files.
> (GOARCH): Handle sparc, sparcv9.
> Sort cases.
> (GOOS): Handle solaris.
> Sort cases.
> (proc_file, regs_file): Sort by OS.
> (go_syscall_files): Use $(syscall_sysfile_arch_file).
> (libgo_la_LDFLAGS): Define.
> (libgo_la_LIBADD): Add $(NET_LIB).
> (GOLINK): Fix typo.
> Remove $(PTHREAD_LIBS) $(MATH_LIBS).
> (CHECK): Use $(ECHO), $(ECHO_N).
> Pass $(NM) to gotest.
> (sysinfo.go): Pass $(CC) to mksysinfo.sh, add $(host_triplet) arg.
> * configure: Regenerate.
> * Makefile.in: Regenerate.
> * testsuite/Makefile.in: Regenerate.
> * mksysinfo.sh: Fix comment.
> Handle host argument.
> Handle _timestruc_t, _u?pad128_t.
> Ignore var _timezone, _utsname.
> (O_ASYNC) Provide if missing.
> (_PTRACE_TRACEME): Provide if missing.
> (PtraceRegs): Restrict to *-*-linux*.
> (_pad128_t): Work around missing float80 on *-*-solaris2*.
> (_upad128_t): Likewise.
> * runtime/go-go.c (__go_go) [!LINKER_SUPPORTS_SPLIT_STACK &&
> __sun__ && __svr4__]: Reduce default thread stack size.
> * syscalls/socket.go (SizeofSockaddr*): May be Linux-specific.
> * syscalls/socket_solaris.go: New file.
> * syscalls/syscall_solaris.go: New file.
> * syscalls/syscall_solaris_386.go: New file.
> * syscalls/syscall_solaris_amd64.go: New file.
> * syscalls/sysfile_solaris.go: New file.
> * syscalls/sysfile_solaris_386.go: New file.
> * syscalls/sysfile_solaris_amd64.go: New file.
> * testsuite/gotest: Use $NM, add -p.
> * testsuite/lib/libgo.exp (GO_UNDER_TEST): Rename to
> GOC_UNDER_TEST.
> * testsuite/libgo.testmain/testmain.exp (gluefile): Comment.
I think I have now either committed or replied to each of these patches.
Thanks for sending them. I'm sure I got some things wrong, so give it
another try and see what happens.
Ian
More information about the Gcc-patches
mailing list