OSDN Git Service

Update to current version of Go library (revision 94d654be2064).
[pf3gnuchains/gcc-fork.git] / libgo / Makefile.am
index 254a805..0715a99 100644 (file)
@@ -105,6 +105,7 @@ toolexeclibgo_DATA = \
        bufio.gox \
        bytes.gox \
        cmath.gox \
+       crypto.gox \
        ebnf.gox \
        exec.gox \
        expvar.gox \
@@ -158,8 +159,10 @@ toolexeclibgoarchive_DATA = \
 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
 
 toolexeclibgocompress_DATA = \
+       compress/bzip2.gox \
        compress/flate.gox \
        compress/gzip.gox \
+       compress/lzw.gox \
        compress/zlib.gox
 
 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
@@ -178,11 +181,13 @@ toolexeclibgocrypto_DATA = \
        crypto/blowfish.gox \
        crypto/cast5.gox \
        crypto/cipher.gox \
+       crypto/dsa.gox \
        crypto/elliptic.gox \
        crypto/hmac.gox \
        crypto/md4.gox \
        crypto/md5.gox \
        crypto/ocsp.gox \
+       crypto/openpgp.gox \
        crypto/rand.gox \
        crypto/rc4.gox \
        crypto/ripemd160.gox \
@@ -201,6 +206,7 @@ toolexeclibgocryptoopenpgpdir = $(toolexeclibgocryptodir)/openpgp
 toolexeclibgocryptoopenpgp_DATA = \
        crypto/openpgp/armor.gox \
        crypto/openpgp/error.gox \
+       crypto/openpgp/packet.gox \
        crypto/openpgp/s2k.gox
 
 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
@@ -306,6 +312,11 @@ toolexeclibgoruntime_DATA = \
        runtime/debug.gox \
        runtime/pprof.gox
 
+toolexeclibgosyncdir = $(toolexeclibgodir)/sync
+
+toolexeclibgosync_DATA = \
+       sync/atomic.gox
+
 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
 
 toolexeclibgotesting_DATA = \
@@ -352,6 +363,7 @@ runtime_files = \
        runtime/go-int-array-to-string.c \
        runtime/go-int-to-string.c \
        runtime/go-interface-compare.c \
+       runtime/go-interface-eface-compare.c \
        runtime/go-interface-val-compare.c \
        runtime/go-lock-os-thread.c \
        runtime/go-map-delete.c \
@@ -410,8 +422,6 @@ runtime_files = \
        runtime/mfixalloc.c \
        runtime/mgc0.c \
        runtime/mheap.c \
-       runtime/mheapmap32.c \
-       runtime/mheapmap64.c \
        runtime/msize.c \
        runtime/proc.c \
        runtime/thread.c \
@@ -488,6 +498,9 @@ go_cmath_files = \
        go/cmath/sqrt.go \
        go/cmath/tan.go
 
+go_crypto_files = \
+       go/crypto/crypto.go
+
 go_ebnf_files = \
        go/ebnf/ebnf.go \
        go/ebnf/parser.go
@@ -532,6 +545,7 @@ go_http_files = \
        go/http/client.go \
        go/http/dump.go \
        go/http/fs.go \
+       go/http/header.go \
        go/http/lex.go \
        go/http/persist.go \
        go/http/request.go \
@@ -539,6 +553,7 @@ go_http_files = \
        go/http/server.go \
        go/http/status.go \
        go/http/transfer.go \
+       go/http/transport.go \
        go/http/url.go
 
 go_image_files = \
@@ -657,19 +672,49 @@ go_netchan_files = \
        go/netchan/export.go \
        go/netchan/import.go
 
+if LIBGO_IS_SOLARIS
+if LIBGO_IS_386
+go_os_dir_file = go/os/dir_largefile.go
+else
+go_os_dir_file = go/os/dir_regfile.go
+endif
+else
+if LIBGO_IS_LINUX
+go_os_dir_file = go/os/dir_largefile.go
+else
+go_os_dir_file = go/os/dir_regfile.go
+endif
+endif
+
+if LIBGO_IS_LINUX
+go_os_sys_file = go/os/sys_linux.go
+else
+if LIBGO_IS_SOLARIS
+go_os_sys_file = go/os/sys_uname.go
+else
+if LIBGO_IS_RTEMS
+go_os_sys_file = go/os/sys_uname.go
+else
+go_os_sys_file = go/os/sys_bsd.go
+endif
+endif
+endif
+
 go_os_files = \
+       $(go_os_dir_file) \
        go/os/dir.go \
        go/os/env.go \
        go/os/env_unix.go \
        go/os/error.go \
        go/os/exec.go \
+       go/os/exec_unix.go \
        go/os/file.go \
        go/os/file_unix.go \
        go/os/getwd.go \
        go/os/path.go \
        go/os/proc.go \
        go/os/stat.go \
-       go/os/sys_linux.go \
+       $(go_os_sys_file) \
        go/os/time.go \
        go/os/types.go
 
@@ -708,8 +753,6 @@ go_runtime_files = \
        go/runtime/debug.go \
        go/runtime/error.go \
        go/runtime/extern.go \
-       go/runtime/malloc_defs.go \
-       go/runtime/runtime_defs.go \
        go/runtime/sig.go \
        go/runtime/softfloat64.go \
        go/runtime/type.go \
@@ -751,14 +794,23 @@ go_strings_files = \
        go/strings/strings.go
 
 go_sync_files = \
+       go/sync/cond.go \
        go/sync/mutex.go \
        go/sync/once.go \
-       go/sync/rwmutex.go
-go_sync_c_files = \
-       go/sync/cas.c
+       go/sync/rwmutex.go \
+       go/sync/waitgroup.go
+
+if LIBGO_IS_SOLARIS
+go_syslog_file = go/syslog/syslog_solaris.go
+else
+go_syslog_file = go/syslog/syslog_unix.go
+endif
 
 go_syslog_files = \
-       go/syslog/syslog.go
+       go/syslog/syslog.go \
+       $(go_syslog_file)
+go_syslog_c_files = \
+       go/syslog/syslog_c.c
 
 go_tabwriter_files = \
        go/tabwriter/tabwriter.go
@@ -812,6 +864,12 @@ go_archive_zip_files = \
        go/archive/zip/reader.go \
        go/archive/zip/struct.go
 
+go_compress_bzip2_files = \
+       go/compress/bzip2/bit_reader.go \
+       go/compress/bzip2/bzip2.go \
+       go/compress/bzip2/huffman.go \
+       go/compress/bzip2/move_to_front.go
+
 go_compress_flate_files = \
        go/compress/flate/deflate.go \
        go/compress/flate/huffman_bit_writer.go \
@@ -825,6 +883,10 @@ go_compress_gzip_files = \
        go/compress/gzip/gzip.go \
        go/compress/gzip/gunzip.go
 
+go_compress_lzw_files = \
+       go/compress/lzw/reader.go \
+       go/compress/lzw/writer.go
+
 go_compress_zlib_files = \
        go/compress/zlib/reader.go \
        go/compress/zlib/writer.go
@@ -872,6 +934,8 @@ go_crypto_cipher_files = \
        go/crypto/cipher/io.go \
        go/crypto/cipher/ocfb.go \
        go/crypto/cipher/ofb.go
+go_crypto_dsa_files = \
+       go/crypto/dsa/dsa.go
 go_crypto_elliptic_files = \
        go/crypto/elliptic/elliptic.go
 go_crypto_hmac_files = \
@@ -884,6 +948,11 @@ go_crypto_md5_files = \
        go/crypto/md5/md5block.go
 go_crypto_ocsp_files = \
        go/crypto/ocsp/ocsp.go
+go_crypto_openpgp_files = \
+       go/crypto/openpgp/canonical_text.go \
+       go/crypto/openpgp/keys.go \
+       go/crypto/openpgp/read.go \
+       go/crypto/openpgp/write.go
 go_crypto_rand_files = \
        go/crypto/rand/rand.go \
        go/crypto/rand/rand_unix.go
@@ -931,6 +1000,19 @@ go_crypto_openpgp_armor_files = \
        go/crypto/openpgp/armor/encode.go
 go_crypto_openpgp_error_files = \
        go/crypto/openpgp/error/error.go
+go_crypto_openpgp_packet_files = \
+       go/crypto/openpgp/packet/compressed.go \
+       go/crypto/openpgp/packet/encrypted_key.go \
+       go/crypto/openpgp/packet/literal.go \
+       go/crypto/openpgp/packet/one_pass_signature.go \
+       go/crypto/openpgp/packet/packet.go \
+       go/crypto/openpgp/packet/private_key.go \
+       go/crypto/openpgp/packet/public_key.go \
+       go/crypto/openpgp/packet/reader.go \
+       go/crypto/openpgp/packet/signature.go \
+       go/crypto/openpgp/packet/symmetric_key_encrypted.go \
+       go/crypto/openpgp/packet/symmetrically_encrypted.go \
+       go/crypto/openpgp/packet/userid.go
 go_crypto_openpgp_s2k_files = \
        go/crypto/openpgp/s2k/s2k.go
 
@@ -957,7 +1039,7 @@ go_debug_pe_files = \
 go_debug_proc_files = \
        go/debug/proc/proc.go \
        go/debug/proc/proc_$(GOOS).go \
-       go/debug/proc/regs_$(GOOS)_$(GOARCH).go
+       $(GO_DEBUG_PROC_REGS_OS_ARCH_FILE)
 
 go_encoding_ascii85_files = \
        go/encoding/ascii85/ascii85.go
@@ -1056,6 +1138,7 @@ go_net_dict_files = \
        go/net/dict/dict.go
 
 go_net_textproto_files = \
+       go/net/textproto/header.go \
        go/net/textproto/pipeline.go \
        go/net/textproto/reader.go \
        go/net/textproto/textproto.go \
@@ -1077,6 +1160,11 @@ go_runtime_debug_files = \
 go_runtime_pprof_files = \
        go/runtime/pprof/pprof.go
 
+go_sync_atomic_files = \
+       go/sync/atomic/doc.go
+go_sync_atomic_c_files = \
+       go/sync/atomic/atomic.c
+
 go_testing_iotest_files = \
        go/testing/iotest/logger.go \
        go/testing/iotest/reader.go \
@@ -1097,18 +1185,23 @@ endif
 if LIBGO_IS_LINUX
 # Always use lseek64 on GNU/Linux.
 syscall_filesize_file = syscalls/sysfile_largefile.go
+syscall_stat_file = syscalls/sysfile_stat_largefile.go
 else # !LIBGO_IS_LINUX
 if LIBGO_IS_SOLARIS
+# FIXME: Same for sparc vs. sparc64.  Introduce new/additional conditional?
 if LIBGO_IS_386
 # Use lseek64 on 386 Solaris.
 syscall_filesize_file = syscalls/sysfile_largefile.go
+syscall_stat_file = syscalls/sysfile_stat_largefile.go
 else # !LIBGO_IS_LINUX && LIBGO_IS_SOLARIS && !LIBGO_IS_386
 # Use lseek on amd64 Solaris.
 syscall_filesize_file = syscalls/sysfile_regfile.go
+syscall_stat_file = syscalls/sysfile_stat_regfile.go
 endif # !LIBGO_IS_386
 else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
 # Use lseek by default.
 syscall_filesize_file = syscalls/sysfile_regfile.go
+syscall_stat_file = syscalls/sysfile_stat_regfile.go
 endif # !LIBGO_IS_SOLARIS
 endif # !LIBGO_IS_LINUX
 
@@ -1166,6 +1259,18 @@ else
 syscall_socket_epoll_file =
 endif
 
+# Support for uname.
+if LIBGO_IS_SOLARIS
+if LIBGO_IS_386
+# 32-bit Solaris 2/x86 needs _nuname, handled in syscall_solaris_386.go.
+syscall_uname_file =
+else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
+syscall_uname_file = syscalls/syscall_uname.go
+endif
+else # !LIBGO_IS_SOLARIS
+syscall_uname_file = syscalls/syscall_uname.go
+endif
+
 syscall_arch.go: s-syscall_arch; @true
 s-syscall_arch: Makefile
        rm -f syscall_arch.go.tmp
@@ -1181,15 +1286,17 @@ go_syscall_files = \
        syscalls/exec_helpers.go \
        $(syscall_exec_os_file) \
        $(syscall_filesize_file) \
+       $(syscall_stat_file) \
        $(syscall_sleep_file) \
        syscalls/socket.go \
        $(syscall_socket_os_file) \
        $(syscall_socket_epoll_file) \
        $(syscall_syscall_file) \
+       $(syscall_uname_file) \
        syscalls/syscall_unix.go \
        syscalls/stringbyte.go \
        syscalls/syscall_$(GOOS).go \
-       syscalls/syscall_$(GOOS)_$(GOARCH).go \
+       $(GO_SYSCALLS_SYSCALL_OS_ARCH_FILE) \
        syscalls/sysfile_posix.go \
        sysinfo.go \
        syscall_arch.go
@@ -1197,138 +1304,149 @@ go_syscall_c_files = \
        syscalls/errno.c
 
 if LIBGO_IS_LINUX
-# os_lib_inotify_la = os/libinotify.la
-os_lib_inotify_la =
+# os_lib_inotify_lo = os/inotify.lo
+os_lib_inotify_lo =
 else
-os_lib_inotify_la =
+os_lib_inotify_lo =
 endif
 
 libgo_go_objs = \
-       asn1/libasn1.la \
-       big/libbig.la \
-       bufio/libbufio.la \
-       bytes/libbytes.la \
-       cmath/libcmath.la \
-       ebnf/libebnf.la \
-       exec/libexec.la \
-       expvar/libexpvar.la \
-       flag/libflag.la \
-       fmt/libfmt.la \
-       gob/libgob.la \
-       hash/libhash.la \
-       html/libhtml.la \
-       http/libhttp.la \
-       image/libimage.la \
-       io/libio.la \
-       json/libjson.la \
-       log/liblog.la \
-       math/libmath.la \
-       mime/libmime.la \
-       net/libnet.la \
-       netchan/libnetchan.la \
-       os/libos.la \
-       patch/libpatch.la \
-       path/libpath.la \
-       rand/librand.la \
-       reflect/libreflect.la \
-       regexp/libregexp.la \
-       rpc/librpc.la \
-       runtime/libruntime.la \
-       scanner/libscanner.la \
-       smtp/libsmtp.la \
-       sort/libsort.la \
-       strconv/libstrconv.la \
-       strings/libstrings.la \
-       sync/libsync.la \
-       syslog/libsyslog.la \
-       tabwriter/libtabwriter.la \
-       template/libtemplate.la \
-       time/libtime.la \
-       try/libtry.la \
-       unicode/libunicode.la \
-       utf16/libutf16.la \
-       utf8/libutf8.la \
-       websocket/libwebsocket.la \
-       xml/libxml.la \
-       archive/libtar.la \
-       archive/libzip.la \
-       compress/libflate.la \
-       compress/libgzip.la \
-       compress/libzlib.la \
-       container/libheap.la \
-       container/liblist.la \
-       container/libring.la \
-       container/libvector.la \
-       crypto/libaes.la \
-       crypto/libblock.la \
-       crypto/libblowfish.la \
-       crypto/libcast5.la \
-       crypto/libcipher.la \
-       crypto/libelliptic.la \
-       crypto/libhmac.la \
-       crypto/libmd4.la \
-       crypto/libmd5.la \
-       crypto/libocsp.la \
-       crypto/librand.la \
-       crypto/librc4.la \
-       crypto/libripemd160.la \
-       crypto/librsa.la \
-       crypto/libsha1.la \
-       crypto/libsha256.la \
-       crypto/libsha512.la \
-       crypto/libsubtle.la \
-       crypto/libtls.la \
-       crypto/libtwofish.la \
-       crypto/libx509.la \
-       crypto/libxtea.la \
-       crypto/openpgp/libarmor.la \
-       crypto/openpgp/liberror.la \
-       crypto/openpgp/libs2k.la \
-       debug/libdwarf.la \
-       debug/libelf.la \
-       debug/libgosym.la \
-       debug/libmacho.la \
-       debug/libpe.la \
-       debug/libproc.la \
-       encoding/libascii85.la \
-       encoding/libbase32.la \
-       encoding/libbase64.la \
-       encoding/libbinary.la \
-       encoding/libgit85.la \
-       encoding/libhex.la \
-       encoding/libline.la \
-       encoding/libpem.la \
-       exp/libdatafmt.la \
-       exp/libdraw.la \
-       exp/libeval.la \
-       go/libast.la \
-       go/libdoc.la \
-       go/libparser.la \
-       go/libprinter.la \
-       go/libscanner.la \
-       go/libtoken.la \
-       go/libtypechecker.la \
-       hash/libadler32.la \
-       hash/libcrc32.la \
-       hash/libcrc64.la \
-       http/libpprof.la \
-       image/libjpeg.la \
-       image/libpng.la \
-       index/libsuffixarray.la \
-       io/libioutil.la \
-       mime/libmultipart.la \
-       net/libdict.la \
-       net/libtextproto.la \
-       $(os_lib_inotify_la) \
-       os/libsignal.la \
-       rpc/libjsonrpc.la \
-       runtime/libdebug.la \
-       runtime/libpprof.la \
-       syscalls/libsyscall.la \
-       testing/libtesting.la \
-       testing/libiotest.la \
-       testing/libquick.la \
-       testing/libscript.la
+       asn1/asn1.lo \
+       big/big.lo \
+       bufio/bufio.lo \
+       bytes/bytes.lo \
+       bytes/index.lo \
+       cmath/cmath.lo \
+       crypto/crypto.lo \
+       ebnf/ebnf.lo \
+       exec/exec.lo \
+       expvar/expvar.lo \
+       flag/flag.lo \
+       fmt/fmt.lo \
+       gob/gob.lo \
+       hash/hash.lo \
+       html/html.lo \
+       http/http.lo \
+       image/image.lo \
+       io/io.lo \
+       json/json.lo \
+       log/log.lo \
+       math/math.lo \
+       mime/mime.lo \
+       net/net.lo \
+       netchan/netchan.lo \
+       os/os.lo \
+       patch/patch.lo \
+       path/path.lo \
+       rand/rand.lo \
+       reflect/reflect.lo \
+       regexp/regexp.lo \
+       rpc/rpc.lo \
+       runtime/runtime.lo \
+       scanner/scanner.lo \
+       smtp/smtp.lo \
+       sort/sort.lo \
+       strconv/strconv.lo \
+       strings/strings.lo \
+       sync/sync.lo \
+       syslog/syslog.lo \
+       syslog/syslog_c.lo \
+       tabwriter/tabwriter.lo \
+       template/template.lo \
+       time/time.lo \
+       try/try.lo \
+       unicode/unicode.lo \
+       utf16/utf16.lo \
+       utf8/utf8.lo \
+       websocket/websocket.lo \
+       xml/xml.lo \
+       archive/tar.lo \
+       archive/zip.lo \
+       compress/bzip2.lo \
+       compress/flate.lo \
+       compress/gzip.lo \
+       compress/lzw.lo \
+       compress/zlib.lo \
+       container/heap.lo \
+       container/list.lo \
+       container/ring.lo \
+       container/vector.lo \
+       crypto/aes.lo \
+       crypto/block.lo \
+       crypto/blowfish.lo \
+       crypto/cast5.lo \
+       crypto/cipher.lo \
+       crypto/dsa.lo \
+       crypto/elliptic.lo \
+       crypto/hmac.lo \
+       crypto/md4.lo \
+       crypto/md5.lo \
+       crypto/ocsp.lo \
+       crypto/openpgp.lo \
+       crypto/rand.lo \
+       crypto/rc4.lo \
+       crypto/ripemd160.lo \
+       crypto/rsa.lo \
+       crypto/sha1.lo \
+       crypto/sha256.lo \
+       crypto/sha512.lo \
+       crypto/subtle.lo \
+       crypto/tls.lo \
+       crypto/twofish.lo \
+       crypto/x509.lo \
+       crypto/xtea.lo \
+       crypto/openpgp/armor.lo \
+       crypto/openpgp/error.lo \
+       crypto/openpgp/packet.lo \
+       crypto/openpgp/s2k.lo \
+       debug/dwarf.lo \
+       debug/elf.lo \
+       debug/gosym.lo \
+       debug/macho.lo \
+       debug/pe.lo \
+       debug/proc.lo \
+       encoding/ascii85.lo \
+       encoding/base32.lo \
+       encoding/base64.lo \
+       encoding/binary.lo \
+       encoding/git85.lo \
+       encoding/hex.lo \
+       encoding/line.lo \
+       encoding/pem.lo \
+       exp/datafmt.lo \
+       exp/draw.lo \
+       exp/eval.lo \
+       go/ast.lo \
+       go/doc.lo \
+       go/parser.lo \
+       go/printer.lo \
+       go/scanner.lo \
+       go/token.lo \
+       go/typechecker.lo \
+       hash/adler32.lo \
+       hash/crc32.lo \
+       hash/crc64.lo \
+       http/pprof.lo \
+       image/jpeg.lo \
+       image/png.lo \
+       index/suffixarray.lo \
+       io/ioutil.lo \
+       mime/multipart.lo \
+       net/dict.lo \
+       net/textproto.lo \
+       $(os_lib_inotify_lo) \
+       os/signal.lo \
+       rpc/jsonrpc.lo \
+       runtime/debug.lo \
+       runtime/pprof.lo \
+       sync/atomic.lo \
+       sync/atomic_c.lo \
+       syscalls/syscall.lo \
+       syscalls/errno.lo \
+       testing/testing.lo \
+       testing/iotest.lo \
+       testing/quick.lo \
+       testing/script.lo
 
 libgo_la_SOURCES = $(runtime_files)
 
@@ -1350,19 +1468,11 @@ LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
        $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
 
-# Build a package.
-BUILDARCHIVE = \
-       rm -f `echo $@ | sed -e 's|/lib|/|' -e 's/\.a/.gox/'`; \
-       test -d $(@D) || $(MKDIR_P) $(@D); \
-       rm -f $@; \
+# Build the .go files for a package, generating a .lo file.
+BUILDPACKAGE = \
+       $(MKDIR_P) $(@D); \
        files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
-       if $(LTGOCOMPILE) -I . -c -fgo-prefix="libgo_$(@D)" -o $@.$(OBJEXT) $$files; then \
-         $(AR) rc $@ $@.$(OBJEXT); \
-       else exit 1; fi
-
-# Build a .la file from a .a file.
-.a.la:
-       $(LINK) $<.lo
+       $(LTGOCOMPILE) -I . -c -fgo-prefix="libgo_$(@D)" -o $@ $$files
 
 if LIBGO_IS_RTEMS
 use_dejagnu = yes
@@ -1413,995 +1523,917 @@ CHECK_DEPS = libgo.la libgobegin.a \
        $(toolexeclibruntime_DATA) \
        $(toolexeclibtesting_DATA)
 
-asn1/libasn1.a: $(go_asn1_files) bytes.gox fmt.gox io.gox os.gox reflect.gox \
+asn1/asn1.lo: $(go_asn1_files) bytes.gox fmt.gox io.gox os.gox reflect.gox \
                strconv.gox strings.gox time.gox
-       $(BUILDARCHIVE)
-asn1/libasn1.la: asn1/libasn1.a
+       $(BUILDPACKAGE)
 asn1/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: asn1/check
 
-big/libbig.a: $(go_big_files) fmt.gox rand.gox strings.gox
-       $(BUILDARCHIVE)
-big/libbig.la: big/libbig.a
+big/big.lo: $(go_big_files) fmt.gox rand.gox strings.gox
+       $(BUILDPACKAGE)
 big/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: big/check
 
-bufio/libbufio.a: $(go_bufio_files) bytes.gox io.gox os.gox strconv.gox \
-               utf8.gox
-       $(BUILDARCHIVE)
-bufio/libbufio.la: bufio/libbufio.a
+bufio/bufio.lo: $(go_bufio_files) bytes.gox io.gox os.gox strconv.gox utf8.gox
+       $(BUILDPACKAGE)
 bufio/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: bufio/check
 
-bytes/libbytes.a: $(go_bytes_files) $(go_bytes_c_files) io.gox os.gox \
-               unicode.gox utf8.gox
-       test -d bytes || $(MKDIR_P) bytes
-       $(LTGOCOMPILE) -c -o bytes/bytes.$(OBJEXT) -fgo-prefix=libgo_bytes $(srcdir)/go/bytes/buffer.go $(srcdir)/go/bytes/bytes.go $(srcdir)/go/bytes/bytes_decl.go
-       $(LTCOMPILE) -c -o bytes/index.$(OBJEXT) $(srcdir)/go/bytes/indexbyte.c
-       rm -f $@
-       $(AR) rc $@ bytes/bytes.$(OBJEXT) bytes/index.$(OBJEXT)
-bytes/libbytes.la: bytes/libbytes.a
-       $(LINK) bytes/bytes.lo bytes/index.lo
+bytes/bytes.lo: $(go_bytes_files) io.gox os.gox unicode.gox utf8.gox
+       $(BUILDPACKAGE)
+bytes/index.lo: $(go_bytes_c_files) bytes/bytes.lo
+       $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
 bytes/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: bytes/check
 
-cmath/libcmath.a: $(go_cmath_files) math.gox
-       $(BUILDARCHIVE)
-cmath/libcmath.la: cmath/libcmath.a
+cmath/cmath.lo: $(go_cmath_files) math.gox
+       $(BUILDPACKAGE)
 cmath/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: cmath/check
 
-ebnf/libebnf.a: $(go_ebnf_files) container/vector.gox go/scanner.gox \
+crypto/crypto.lo: $(go_crypto_files) hash.gox
+       $(BUILDPACKAGE)
+crypto/check: $(CHECK_DEPS)
+       $(CHECK)
+.PHONY: crypto/check
+
+ebnf/ebnf.lo: $(go_ebnf_files) container/vector.gox go/scanner.gox \
                go/token.gox os.gox strconv.gox unicode.gox utf8.gox
-       $(BUILDARCHIVE)
-ebnf/libebnf.la: ebnf/libebnf.a
+       $(BUILDPACKAGE)
 ebnf/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: ebnf/check
 
-exec/libexec.a: $(go_exec_files) os.gox strings.gox
-       $(BUILDARCHIVE)
-exec/libexec.la: exec/libexec.a
+exec/exec.lo: $(go_exec_files) os.gox strconv.gox strings.gox
+       $(BUILDPACKAGE)
 exec/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: exec/check
 
-expvar/libexpvar.a: $(go_expvar_files) bytes.gox fmt.gox http.gox json.gox \
+expvar/expvar.lo: $(go_expvar_files) bytes.gox fmt.gox http.gox json.gox \
                log.gox os.gox runtime.gox strconv.gox sync.gox
-       $(BUILDARCHIVE)
-expvar/libexpvar.la: expvar/libexpvar.a
+       $(BUILDPACKAGE)
 expvar/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: expvar/check
 
-flag/libflag.a: $(go_flag_files) fmt.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-flag/libflag.la: flag/libflag.a
+flag/flag.lo: $(go_flag_files) fmt.gox os.gox strconv.gox
+       $(BUILDPACKAGE)
 flag/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: flag/check
 
-fmt/libfmt.a: $(go_fmt_files) bytes.gox io.gox os.gox reflect.gox strconv.gox \
-               strings.gox unicode.gox utf8.gox
-       $(BUILDARCHIVE)
-fmt/libfmt.la: fmt/libfmt.a
+fmt/fmt.lo: $(go_fmt_files) bytes.gox io.gox math.gox os.gox reflect.gox \
+               strconv.gox strings.gox unicode.gox utf8.gox
+       $(BUILDPACKAGE)
 fmt/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: fmt/check
 
-gob/libgob.a: $(go_gob_files) bytes.gox fmt.gox io.gox math.gox os.gox \
+gob/gob.lo: $(go_gob_files) bytes.gox fmt.gox io.gox math.gox os.gox \
                reflect.gox runtime.gox strings.gox sync.gox unicode.gox \
                utf8.gox
-       $(BUILDARCHIVE)
-gob/libgob.la: gob/libgob.a
+       $(BUILDPACKAGE)
 gob/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: gob/check
 
-hash/libhash.a: $(go_hash_files) io.gox
-       $(BUILDARCHIVE)
-hash/libhash.la: hash/libhash.a
+hash/hash.lo: $(go_hash_files) io.gox
+       $(BUILDPACKAGE)
 hash/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: hash/check
 
-html/libhtml.a: $(go_html_files) bytes.gox io.gox os.gox strconv.gox \
-               strings.gox utf8.gox
-       $(BUILDARCHIVE)
-html/libhtml.la: html/libhtml.a
+html/html.lo: $(go_html_files) bytes.gox io.gox os.gox strconv.gox strings.gox \
+               utf8.gox
+       $(BUILDPACKAGE)
 html/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: html/check
 
-http/libhttp.a: $(go_http_files) bufio.gox bytes.gox container/list.gox \
-               container/vector.gox crypto/rand.gox crypto/tls.gox \
-               encoding/base64.gox fmt.gox io.gox io/ioutil.gox log.gox \
-               mime.gox mime/multipart.gox net.gox os.gox path.gox sort.gox \
+http/http.lo: $(go_http_files) bufio.gox bytes.gox container/vector.gox \
+               crypto/rand.gox crypto/tls.gox encoding/base64.gox fmt.gox \
+               io.gox io/ioutil.gox log.gox mime.gox mime/multipart.gox \
+               net.gox net/textproto.gox os.gox path.gox sort.gox \
                strconv.gox strings.gox sync.gox time.gox utf8.gox
-       $(BUILDARCHIVE)
-http/libhttp.la: http/libhttp.a
+       $(BUILDPACKAGE)
 http/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: http/check
 
-image/libimage.a: $(go_image_files) bufio.gox io.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-image/libimage.la: image/libimage.a
+image/image.lo: $(go_image_files) bufio.gox io.gox os.gox strconv.gox
+       $(BUILDPACKAGE)
 image/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: image/check
 
-io/libio.a: $(go_io_files) os.gox runtime.gox sync.gox
-       $(BUILDARCHIVE)
-io/libio.la: io/libio.a
+io/io.lo: $(go_io_files) os.gox runtime.gox sync.gox
+       $(BUILDPACKAGE)
 io/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: io/check
 
-json/libjson.a: $(go_json_files) bytes.gox container/vector.gox fmt.gox \
-               io.gox math.gox os.gox reflect.gox runtime.gox strconv.gox \
-               strings.gox unicode.gox utf16.gox utf8.gox
-       $(BUILDARCHIVE)
-json/libjson.la: json/libjson.a
+json/json.lo: $(go_json_files) bytes.gox container/vector.gox \
+               encoding/base64.gox fmt.gox io.gox math.gox os.gox \
+               reflect.gox runtime.gox strconv.gox strings.gox unicode.gox \
+               utf16.gox utf8.gox
+       $(BUILDPACKAGE)
 json/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: json/check
 
-log/liblog.a: $(go_log_files) bytes.gox fmt.gox io.gox runtime.gox os.gox \
+log/log.lo: $(go_log_files) bytes.gox fmt.gox io.gox runtime.gox os.gox \
                sync.gox time.gox
-       $(BUILDARCHIVE)
-log/liblog.la: log/liblog.a
+       $(BUILDPACKAGE)
 log/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: log/check
 
-math/libmath.a: $(go_math_files)
-       $(BUILDARCHIVE)
-math/libmath.la: math/libmath.a
+math/math.lo: $(go_math_files)
+       $(BUILDPACKAGE)
 math/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: math/check
 
-mime/libmime.a: $(go_mime_files) bufio.gox bytes.gox os.gox strings.gox \
+mime/mime.lo: $(go_mime_files) bufio.gox bytes.gox os.gox strings.gox \
                sync.gox unicode.gox
-       $(BUILDARCHIVE)
-mime/libmime.la: mime/libmime.a
+       $(BUILDPACKAGE)
 mime/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: mime/check
 
-net/libnet.a: $(go_net_files) bytes.gox fmt.gox io.gox os.gox reflect.gox \
+net/net.lo: $(go_net_files) bytes.gox fmt.gox io.gox os.gox reflect.gox \
                strconv.gox strings.gox sync.gox syscall.gox
-       $(BUILDARCHIVE)
-net/libnet.la: net/libnet.a
+       $(BUILDPACKAGE)
 net/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: net/check
 
-netchan/libnetchan.a: $(go_netchan_files) gob.gox log.gox net.gox os.gox \
+netchan/netchan.lo: $(go_netchan_files) gob.gox io.gox log.gox net.gox os.gox \
                reflect.gox strconv.gox sync.gox time.gox
-       $(BUILDARCHIVE)
-netchan/libnetchan.la: netchan/libnetchan.a
+       $(BUILDPACKAGE)
 netchan/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: netchan/check
 
-os/libos.a: $(go_os_files) sync.gox syscall.gox
-       $(BUILDARCHIVE)
-os/libos.la: os/libos.a
+os/os.lo: $(go_os_files) runtime.gox sync.gox syscall.gox
+       $(BUILDPACKAGE)
 os/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: os/check
 
-patch/libpatch.a: $(go_patch_files) bytes.gox compress/zlib.gox \
+patch/patch.lo: $(go_patch_files) bytes.gox compress/zlib.gox \
                crypto/sha1.gox encoding/git85.gox fmt.gox io.gox os.gox \
                path.gox strings.gox
-       $(BUILDARCHIVE)
-patch/libpatch.la: patch/libpatch.a
+       $(BUILDPACKAGE)
 patch/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: patch/check
 
-path/libpath.a: $(go_path_files) io/ioutil.gox os.gox sort.gox strings.gox \
+path/path.lo: $(go_path_files) io/ioutil.gox os.gox sort.gox strings.gox \
                utf8.gox
-       $(BUILDARCHIVE)
-path/libpath.la: path/libpath.a
+       $(BUILDPACKAGE)
 path/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: path/check
 
-rand/librand.a: $(go_rand_files) math.gox sync.gox
-       $(BUILDARCHIVE)
-rand/librand.la: rand/librand.a
+rand/rand.lo: $(go_rand_files) math.gox sync.gox
+       $(BUILDPACKAGE)
 rand/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: rand/check
 
-reflect/libreflect.a: $(go_reflect_files) math.gox runtime.gox strconv.gox \
+reflect/reflect.lo: $(go_reflect_files) math.gox runtime.gox strconv.gox \
                sync.gox
-       $(BUILDARCHIVE)
-reflect/libreflect.la: reflect/libreflect.a
+       $(BUILDPACKAGE)
 reflect/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: reflect/check
 
-regexp/libregexp.a: $(go_regexp_files) bytes.gox io.gox os.gox strings.gox \
+regexp/regexp.lo: $(go_regexp_files) bytes.gox io.gox os.gox strings.gox \
                utf8.gox
-       $(BUILDARCHIVE)
-regexp/libregexp.la: regexp/libregexp.a
+       $(BUILDPACKAGE)
 regexp/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: regexp/check
 
-rpc/librpc.a: $(go_rpc_files) bufio.gox fmt.gox gob.gox http.gox io.gox \
-               log.gox net.gox os.gox reflect.gox sort.gox strings.gox \
-               strconv.gox sync.gox template.gox unicode.gox utf8.gox
-       $(BUILDARCHIVE)
-rpc/librpc.la: rpc/librpc.a
+rpc/rpc.lo: $(go_rpc_files) bufio.gox fmt.gox gob.gox http.gox io.gox log.gox \
+               net.gox os.gox reflect.gox sort.gox strings.gox strconv.gox \
+               sync.gox template.gox unicode.gox utf8.gox
+       $(BUILDPACKAGE)
 rpc/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: rpc/check
 
-runtime/libruntime.a: $(go_runtime_files)
-       $(BUILDARCHIVE)
-runtime/libruntime.la: runtime/libruntime.a
+runtime/runtime.lo: $(go_runtime_files)
+       $(BUILDPACKAGE)
 runtime/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: runtime/check
 
-scanner/libscanner.a: $(go_scanner_files) bytes.gox fmt.gox io.gox os.gox \
+scanner/scanner.lo: $(go_scanner_files) bytes.gox fmt.gox io.gox os.gox \
                unicode.gox utf8.gox
-       $(BUILDARCHIVE)
-scanner/libscanner.la: scanner/libscanner.a
+       $(BUILDPACKAGE)
 scanner/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: scanner/check
 
-smtp/libsmtp.a: $(go_smtp_files) crypto/tls.gox encoding/base64.gox io.gox \
+smtp/smtp.lo: $(go_smtp_files) crypto/tls.gox encoding/base64.gox io.gox \
                net.gox net/textproto.gox os.gox strings.gox
-       $(BUILDARCHIVE)
-smtp/libsmtp.la: smtp/libsmtp.a
+       $(BUILDPACKAGE)
 smtp/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: smtp/check
 
-sort/libsort.a: $(go_sort_files)
-       $(BUILDARCHIVE)
-sort/libsort.la: sort/libsort.a
+sort/sort.lo: $(go_sort_files)
+       $(BUILDPACKAGE)
 sort/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: sort/check
 
-strconv/libstrconv.a: $(go_strconv_files) bytes.gox math.gox os.gox \
-               strings.gox unicode.gox utf8.gox
-       $(BUILDARCHIVE)
-strconv/libstrconv.la: strconv/libstrconv.a
+strconv/strconv.lo: $(go_strconv_files) bytes.gox math.gox os.gox strings.gox \
+               unicode.gox utf8.gox
+       $(BUILDPACKAGE)
 strconv/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: strconv/check
 
-strings/libstrings.a: $(go_strings_files) os.gox unicode.gox utf8.gox
-       $(BUILDARCHIVE)
-strings/libstrings.la: strings/libstrings.a
+strings/strings.lo: $(go_strings_files) os.gox unicode.gox utf8.gox
+       $(BUILDPACKAGE)
 strings/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: strings/check
 
-sync/libsync.a: $(go_sync_files) $(go_sync_c_files) runtime.gox
-       test -d sync || $(MKDIR_P) sync
-       $(LTGOCOMPILE) -c -o sync/mutex.$(OBJEXT) -fgo-prefix=libgo_sync $(srcdir)/go/sync/mutex.go $(srcdir)/go/sync/once.go $(srcdir)/go/sync/rwmutex.go
-       $(LTCOMPILE) -c -o sync/cas.$(OBJEXT) $(srcdir)/go/sync/cas.c
-       rm -f $@
-       $(AR) rc $@ sync/mutex.$(OBJEXT) sync/cas.$(OBJEXT)
-sync/libsync.la: sync/libsync.a
-       $(LINK) sync/mutex.lo sync/cas.lo
+sync/sync.lo: $(go_sync_files) runtime.gox sync/atomic.gox
+       $(BUILDPACKAGE)
 sync/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: sync/check
 
-syslog/libsyslog.a: $(go_syslog_files) fmt.gox log.gox net.gox os.gox
-       $(BUILDARCHIVE)
-syslog/libsyslog.la: syslog/libsyslog.a
+syslog/syslog.lo: $(go_syslog_files) fmt.gox log.gox net.gox os.gox syscall.gox
+       $(BUILDPACKAGE)
+syslog/syslog_c.lo: $(go_syslog_c_files) syslog/syslog.lo
+       $(LTCOMPILE) -c -o $@ $(srcdir)/go/syslog/syslog_c.c
 syslog/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: syslog/check
 
-tabwriter/libtabwriter.a: $(go_tabwriter_files) bytes.gox io.gox os.gox \
-               utf8.gox
-       $(BUILDARCHIVE)
-tabwriter/libtabwriter.la: tabwriter/libtabwriter.a
+tabwriter/tabwriter.lo: $(go_tabwriter_files) bytes.gox io.gox os.gox utf8.gox
+       $(BUILDPACKAGE)
 tabwriter/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: tabwriter/check
 
-template/libtemplate.a: $(go_template_files) bytes.gox fmt.gox io.gox os.gox \
+template/template.lo: $(go_template_files) bytes.gox fmt.gox io.gox os.gox \
                reflect.gox runtime.gox strings.gox container/vector.gox
-       $(BUILDARCHIVE)
-template/libtemplate.la: template/libtemplate.a
+       $(BUILDPACKAGE)
 template/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: template/check
 
-testing/libtesting.a: $(go_testing_files) flag.gox fmt.gox os.gox regexp.gox \
+testing/testing.lo: $(go_testing_files) flag.gox fmt.gox os.gox regexp.gox \
                runtime.gox time.gox
-       $(BUILDARCHIVE)
-testing/libtesting.la: testing/libtesting.a
+       $(BUILDPACKAGE)
 testing/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: testing/check
 
-time/libtime.a: $(go_time_files) bytes.gox container/heap.gox io/ioutil.gox \
+time/time.lo: $(go_time_files) bytes.gox container/heap.gox io/ioutil.gox \
                os.gox strconv.gox sync.gox syscall.gox
-       $(BUILDARCHIVE)
-time/libtime.la: time/libtime.a
+       $(BUILDPACKAGE)
 time/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: time/check
 
-try/libtry.a: $(go_try_files) fmt.gox io.gox os.gox reflect.gox unicode.gox
-       $(BUILDARCHIVE)
-try/libtry.la: try/libtry.a
+try/try.lo: $(go_try_files) fmt.gox io.gox os.gox reflect.gox unicode.gox
+       $(BUILDPACKAGE)
 try/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: try/check
 
-unicode/libunicode.a: $(go_unicode_files)
-       $(BUILDARCHIVE)
-unicode/libunicode.la: unicode/libunicode.a
+unicode/unicode.lo: $(go_unicode_files)
+       $(BUILDPACKAGE)
 unicode/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: unicode/check
 
-utf16/libutf16.a: $(go_utf16_files) unicode.gox
-       $(BUILDARCHIVE)
-utf16/libutf16.la: utf16/libutf16.a
+utf16/utf16.lo: $(go_utf16_files) unicode.gox
+       $(BUILDPACKAGE)
 utf16/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: utf16/check
 
-utf8/libutf8.a: $(go_utf8_files) unicode.gox
-       $(BUILDARCHIVE)
-utf8/libutf8.la: utf8/libutf8.a
+utf8/utf8.lo: $(go_utf8_files) unicode.gox
+       $(BUILDPACKAGE)
 utf8/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: utf8/check
 
-websocket/libwebsocket.a: $(go_websocket_files) bufio.gox bytes.gox \
+websocket/websocket.lo: $(go_websocket_files) bufio.gox bytes.gox \
                container/vector.gox crypto/md5.gox crypto/tls.gox \
                encoding/binary.gox fmt.gox http.gox io.gox net.gox os.gox \
                rand.gox strings.gox
-       $(BUILDARCHIVE)
-websocket/libwebsocket.la: websocket/libwebsocket.a
+       $(BUILDPACKAGE)
 websocket/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: websocket/check
 
-xml/libxml.a: $(go_xml_files) bufio.gox bytes.gox fmt.gox io.gox os.gox \
+xml/xml.lo: $(go_xml_files) bufio.gox bytes.gox fmt.gox io.gox os.gox \
                reflect.gox strconv.gox strings.gox unicode.gox utf8.gox
-       $(BUILDARCHIVE)
-xml/libxml.la: xml/libxml.a
+       $(BUILDPACKAGE)
 xml/check: $(CHECK_DEPS)
        $(CHECK)
 .PHONY: xml/check
 
-archive/libtar.a: $(go_archive_tar_files) bytes.gox io.gox os.gox strconv.gox \
+archive/tar.lo: $(go_archive_tar_files) bytes.gox io.gox os.gox strconv.gox \
                strings.gox
-       $(BUILDARCHIVE)
-archive/libtar.la: archive/libtar.a
+       $(BUILDPACKAGE)
 archive/tar/check: $(CHECK_DEPS)
        @$(MKDIR_P) archive/tar
        $(CHECK)
 .PHONY: archive/tar/check
 
-archive/libzip.a: $(go_archive_zip_files) bufio.gox bytes.gox \
+archive/zip.lo: $(go_archive_zip_files) bufio.gox bytes.gox \
                compress/flate.gox hash.gox hash/crc32.gox \
                encoding/binary.gox io.gox os.gox
-       $(BUILDARCHIVE)
-archive/libzip.la: archive/libzip.a
+       $(BUILDPACKAGE)
 archive/zip/check: $(CHECK_DEPS)
        @$(MKDIR_P) archive/zip
        $(CHECK)
 .PHONY: archive/zip/check
 
-compress/libflate.a: $(go_compress_flate_files) bufio.gox io.gox math.gox \
+compress/bzip2.lo: $(go_compress_bzip2_files) bufio.gox io.gox os.gox sort.gox
+       $(BUILDPACKAGE)
+compress/bzip2/check: $(CHECK_DEPS)
+       @$(MKDIR_P) compress/bzip2
+       $(CHECK)
+.PHONY: compress/bzip2/check
+
+compress/flate.lo: $(go_compress_flate_files) bufio.gox io.gox math.gox \
                os.gox sort.gox strconv.gox
-       $(BUILDARCHIVE)
-compress/libflate.la: compress/libflate.a
+       $(BUILDPACKAGE)
 compress/flate/check: $(CHECK_DEPS)
        @$(MKDIR_P) compress/flate
        $(CHECK)
 .PHONY: compress/flate/check
 
-compress/libgzip.a: $(go_compress_gzip_files) bufio.gox compress/flate.gox \
+compress/gzip.lo: $(go_compress_gzip_files) bufio.gox compress/flate.gox \
                hash.gox hash/crc32.gox io.gox os.gox
-       $(BUILDARCHIVE)
-compress/libgzip.la: compress/libgzip.a
+       $(BUILDPACKAGE)
 compress/gzip/check: $(CHECK_DEPS)
        @$(MKDIR_P) compress/gzip
        $(CHECK)
 .PHONY: compress/gzip/check
 
-compress/libzlib.a: $(go_compress_zlib_files) bufio.gox compress/flate.gox \
+compress/lzw.lo: $(go_compress_lzw_files) bufio.gox fmt.gox io.gox os.gox
+       $(BUILDPACKAGE)
+compress/lzw/check: $(CHECK_DEPS)
+       @$(MKDIR_P) compress/lzw
+       $(CHECK)
+.PHONY: compress/lzw/check
+
+compress/zlib.lo: $(go_compress_zlib_files) bufio.gox compress/flate.gox \
                hash.gox hash/adler32.gox io.gox os.gox
-       $(BUILDARCHIVE)
-compress/libzlib.la: compress/libzlib.a
+       $(BUILDPACKAGE)
 compress/zlib/check: $(CHECK_DEPS)
        @$(MKDIR_P) compress/zlib
        $(CHECK)
 .PHONY: compress/zlib/check
 
-container/libheap.a: $(go_container_heap_files) sort.gox
-       $(BUILDARCHIVE)
-container/libheap.la: container/libheap.a
+container/heap.lo: $(go_container_heap_files) sort.gox
+       $(BUILDPACKAGE)
 container/heap/check: $(CHECK_DEPS)
        @$(MKDIR_P) container/heap
        $(CHECK)
 .PHONY: container/heap/check
 
-container/liblist.a: $(go_container_list_files)
-       $(BUILDARCHIVE)
-container/liblist.la: container/liblist.a
+container/list.lo: $(go_container_list_files)
+       $(BUILDPACKAGE)
 container/list/check: $(CHECK_DEPS)
        @$(MKDIR_P) container/list
        $(CHECK)
 .PHONY: container/list/check
 
-container/libring.a: $(go_container_ring_files)
-       $(BUILDARCHIVE)
-container/libring.la: container/libring.a
+container/ring.lo: $(go_container_ring_files)
+       $(BUILDPACKAGE)
 container/ring/check: $(CHECK_DEPS)
        @$(MKDIR_P) container/ring
        $(CHECK)
 .PHONY: container/ring/check
 
-container/libvector.a: $(go_container_vector_files)
-       $(BUILDARCHIVE)
-container/libvector.la: container/libvector.a
+container/vector.lo: $(go_container_vector_files)
+       $(BUILDPACKAGE)
 container/vector/check: $(CHECK_DEPS)
        @$(MKDIR_P) container/vector
        $(CHECK)
 .PHONY: container/vector/check
 
-crypto/libaes.a: $(go_crypto_aes_files) os.gox strconv.gox
-       $(BUILDARCHIVE)
-crypto/libaes.la: crypto/libaes.a
+crypto/aes.lo: $(go_crypto_aes_files) os.gox strconv.gox
+       $(BUILDPACKAGE)
 crypto/aes/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/aes
        $(CHECK)
 .PHONY: crypto/aes/check
 
-crypto/libblock.a: $(go_crypto_block_files) fmt.gox io.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-crypto/libblock.la: crypto/libblock.a
+crypto/block.lo: $(go_crypto_block_files) fmt.gox io.gox os.gox strconv.gox
+       $(BUILDPACKAGE)
 crypto/block/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/block
        $(CHECK)
 .PHONY: crypto/block/check
 
-crypto/libblowfish.a: $(go_crypto_blowfish_files) os.gox strconv.gox
-       $(BUILDARCHIVE)
-crypto/libblowfish.la: crypto/libblowfish.a
+crypto/blowfish.lo: $(go_crypto_blowfish_files) os.gox strconv.gox
+       $(BUILDPACKAGE)
 crypto/blowfish/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/blowfish
        $(CHECK)
 .PHONY: crypto/blowfish/check
 
-crypto/libcast5.a: $(go_crypto_cast5_files) os.gox
-       $(BUILDARCHIVE)
-crypto/libcast5.la: crypto/libcast5.a
+crypto/cast5.lo: $(go_crypto_cast5_files) os.gox
+       $(BUILDPACKAGE)
 crypt/cast5/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/cast5
        $(CHECK)
 .PHONY: crypto/cast5/check
 
-crypto/libcipher.a: $(go_crypto_cipher_files) io.gox os.gox
-       $(BUILDARCHIVE)
-crypto/libcipher.la: crypto/libcipher.a
+crypto/cipher.lo: $(go_crypto_cipher_files) io.gox os.gox
+       $(BUILDPACKAGE)
 crypto/cipher/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/cipher
        $(CHECK)
 .PHONY: crypto/cipher/check
 
-crypto/libelliptic.a: $(go_crypto_elliptic_files) big.gox io.gox os.gox \
-               sync.gox
-       $(BUILDARCHIVE)
-crypto/libelliptic.la: crypto/libelliptic.a
+crypto/dsa.lo: $(go_crypto_dsa_files) big.gox io.gox os.gox
+       $(BUILDPACKAGE)
+crypto/dsa/check: $(CHECK_DEPS)
+       @$(MKDIR_P) crypto/dsa
+       $(CHECK)
+.PHONY: crypto/dsa/check
+
+crypto/elliptic.lo: $(go_crypto_elliptic_files) big.gox io.gox os.gox sync.gox
+       $(BUILDPACKAGE)
 crypto/elliptic/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/elliptic
        $(CHECK)
 .PHONY: crypto/elliptic/check
 
-crypto/libhmac.a: $(go_crypto_hmac_files) crypto/md5.gox crypto/sha1.gox \
+crypto/hmac.lo: $(go_crypto_hmac_files) crypto/md5.gox crypto/sha1.gox \
                crypto/sha256.gox hash.gox os.gox
-       $(BUILDARCHIVE)
-crypto/libhmac.la: crypto/libhmac.a
+       $(BUILDPACKAGE)
 crypto/hmac/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/hmac
        $(CHECK)
 .PHONY: crypto/hmac/check
 
-crypto/libmd4.a: $(go_crypto_md4_files) hash.gox os.gox
-       $(BUILDARCHIVE)
-crypto/libmd4.la: crypto/libmd4.a
+crypto/md4.lo: $(go_crypto_md4_files) crypto.gox hash.gox os.gox
+       $(BUILDPACKAGE)
 crypto/md4/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/md4
        $(CHECK)
 .PHONY: crypto/md4/check
 
-crypto/libmd5.a: $(go_crypto_md5_files) hash.gox os.gox
-       $(BUILDARCHIVE)
-crypto/libmd5.la: crypto/libmd5.a
+crypto/md5.lo: $(go_crypto_md5_files) crypto.gox hash.gox os.gox
+       $(BUILDPACKAGE)
 crypto/md5/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/md5
        $(CHECK)
 .PHONY: crypto/md5/check
 
-crypto/libocsp.a: $(go_crypto_ocsp_files) asn1.gox crypto/rsa.gox \
+crypto/ocsp.lo: $(go_crypto_ocsp_files) asn1.gox crypto.gox crypto/rsa.gox \
                crypto/sha1.gox crypto/x509.gox os.gox time.gox
-       $(BUILDARCHIVE)
-crypto/libocsp.la: crypto/libocsp.a
+       $(BUILDPACKAGE)
 crypto/ocsp/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/ocsp
        $(CHECK)
 .PHONY: crypto/ocsp/check
 
-crypto/librand.a: $(go_crypto_rand_files) crypto/aes.gox io.gox os.gox \
-               sync.gox time.gox
-       $(BUILDARCHIVE)
-crypto/librand.la: crypto/librand.a
+crypto/openpgp.lo: $(go_crypto_openpgp_files) crypto.gox \
+                crypto/openpgp/armor.gox crypto/openpgp/error.gox \
+               crypto/openpgp/packet.gox crypto/rsa.gox crypto/sha256.gox \
+               hash.gox io.gox os.gox strconv.gox time.gox
+       $(BUILDPACKAGE)
+crypto/openpgp/check: $(CHECK_DEPS)
+       @$(MKDIR_P) crypto/openpgp
+       $(CHECK)
+.PHONY: crypto/openpgp/check
+
+crypto/rand.lo: $(go_crypto_rand_files) bufio.gox crypto/aes.gox io.gox \
+               os.gox sync.gox time.gox
+       $(BUILDPACKAGE)
 crypto/rand/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/rand
        $(CHECK)
 .PHONY: crypto/rand/check
 
-crypto/librc4.a: $(go_crypto_rc4_files) os.gox strconv.gox
-       $(BUILDARCHIVE)
-crypto/librc4.la: crypto/librc4.a
+crypto/rc4.lo: $(go_crypto_rc4_files) os.gox strconv.gox
+       $(BUILDPACKAGE)
 crypto/rc4/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/rc4
        $(CHECK)
 .PHONY: crypto/rc4/check
 
-crypto/libripemd160.a: $(go_crypto_ripemd160_files) hash.gox os.gox
-       $(BUILDARCHIVE)
-crypto/libripemd160.la: crypto/libripemd160.a
+crypto/ripemd160.lo: $(go_crypto_ripemd160_files) crypto.gox hash.gox os.gox
+       $(BUILDPACKAGE)
 crypto/ripemd160/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/ripemd160
        $(CHECK)
 .PHONY: crypto/ripemd160/check
 
-crypto/librsa.a: $(go_crypto_rsa_files) big.gox crypto/sha1.gox \
+crypto/rsa.lo: $(go_crypto_rsa_files) big.gox crypto.gox crypto/sha1.gox \
                crypto/subtle.gox encoding/hex.gox hash.gox io.gox os.gox
-       $(BUILDARCHIVE)
-crypto/librsa.la: crypto/librsa.a
+       $(BUILDPACKAGE)
 crypto/rsa/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/rsa
        $(CHECK)
 .PHONY: crypto/rsa/check
 
-crypto/libsha1.a: $(go_crypto_sha1_files) hash.gox os.gox
-       $(BUILDARCHIVE)
-crypto/libsha1.la: crypto/libsha1.a
+crypto/sha1.lo: $(go_crypto_sha1_files) crypto.gox hash.gox os.gox
+       $(BUILDPACKAGE)
 crypto/sha1/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/sha1
        $(CHECK)
 .PHONY: crypto/sha1/check
 
-crypto/libsha256.a: $(go_crypto_sha256_files) hash.gox os.gox
-       $(BUILDARCHIVE)
-crypto/libsha256.la: crypto/libsha256.a
+crypto/sha256.lo: $(go_crypto_sha256_files) crypto.gox hash.gox os.gox
+       $(BUILDPACKAGE)
 crypto/sha256/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/sha256
        $(CHECK)
 .PHONY: crypto/sha256/check
 
-crypto/libsha512.a: $(go_crypto_sha512_files) hash.gox os.gox
-       $(BUILDARCHIVE)
-crypto/libsha512.la: crypto/libsha512.a
+crypto/sha512.lo: $(go_crypto_sha512_files) crypto.gox hash.gox os.gox
+       $(BUILDPACKAGE)
 crypto/sha512/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/sha512
        $(CHECK)
 .PHONY: crypto/sha512/check
 
-crypto/libsubtle.a: $(go_crypto_subtle_files)
-       $(BUILDARCHIVE)
-crypto/libsubtle.la: crypto/libsubtle.a
+crypto/subtle.lo: $(go_crypto_subtle_files)
+       $(BUILDPACKAGE)
 crypto/subtle/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/subtle
        $(CHECK)
 .PHONY: crypto/subtle/check
 
-crypto/libtls.a: $(go_crypto_tls_files) big.gox bufio.gox bytes.gox \
-               container/list.gox crypto/aes.gox crypto/cipher.gox \
+crypto/tls.lo: $(go_crypto_tls_files) big.gox bufio.gox bytes.gox \
+               container/list.gox crypto.gox crypto/aes.gox crypto/cipher.gox \
                crypto/elliptic.gox crypto/hmac.gox crypto/md5.gox \
                crypto/rc4.gox crypto/rand.gox crypto/rsa.gox crypto/sha1.gox \
                crypto/subtle.gox crypto/rsa.gox crypto/sha1.gox \
                crypto/x509.gox encoding/pem.gox fmt.gox hash.gox io.gox \
                io/ioutil.gox net.gox os.gox strings.gox sync.gox time.gox
-       $(BUILDARCHIVE)
-crypto/libtls.la: crypto/libtls.a
+       $(BUILDPACKAGE)
 crypto/tls/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/tls
        $(CHECK)
 .PHONY: crypto/tls/check
 
-crypto/libtwofish.a: $(go_crypto_twofish_files) os.gox strconv.gox
-       $(BUILDARCHIVE)
-crypto/libtwofish.la: crypto/libtwofish.a
+crypto/twofish.lo: $(go_crypto_twofish_files) os.gox strconv.gox
+       $(BUILDPACKAGE)
 crypto/twofish/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/twofish
        $(CHECK)
 .PHONY: crypto/twofish/check
 
-crypto/libx509.a: $(go_crypto_x509_files) asn1.gox big.gox \
-               container/vector.gox crypto/rsa.gox crypto/sha1.gox hash.gox \
-               os.gox strings.gox time.gox
-       $(BUILDARCHIVE)
-crypto/libx509.la: crypto/libx509.a
+crypto/x509.lo: $(go_crypto_x509_files) asn1.gox big.gox container/vector.gox \
+               crypto.gox crypto/rsa.gox crypto/sha1.gox hash.gox os.gox \
+               strings.gox time.gox
+       $(BUILDPACKAGE)
 crypto/x509/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/x509
        $(CHECK)
 .PHONY: crypto/x509/check
 
-crypto/libxtea.a: $(go_crypto_xtea_files) os.gox strconv.gox
-       $(BUILDARCHIVE)
-crypto/libxtea.la: crypto/libxtea.a
+crypto/xtea.lo: $(go_crypto_xtea_files) os.gox strconv.gox
+       $(BUILDPACKAGE)
 crypto/xtea/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/xtea
        $(CHECK)
 .PHONY: crypto/xtea/check
 
-crypto/openpgp/libarmor.a: $(go_crypto_openpgp_armor_files) bytes.gox \
+crypto/openpgp/armor.lo: $(go_crypto_openpgp_armor_files) bytes.gox \
                crypto/openpgp/error.gox encoding/base64.gox \
                encoding/line.gox io.gox os.gox
-       $(BUILDARCHIVE)
-crypto/openpgp/libarmor.la: crypto/openpgp/libarmor.a
+       $(BUILDPACKAGE)
 crypto/openpgp/armor/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/openpgp/armor
        $(CHECK)
 .PHONY: crypto/openpgp/armor/check
 
-crypto/openpgp/liberror.a: $(go_crypto_openpgp_error_files)
-       $(BUILDARCHIVE)
-crypto/openpgp/liberror.la: crypto/openpgp/liberror.a
+crypto/openpgp/error.lo: $(go_crypto_openpgp_error_files) strconv.gox
+       $(BUILDPACKAGE)
 crypto/openpgp/error/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/openpgp/error
        $(CHECK)
 .PHONY: crypto/openpgp/error/check
 
-crypto/openpgp/libs2k.a: $(go_crypto_openpgp_s2k_files) crypto/md5.gox \
-               crypto/openpgp/error.gox crypto/ripemd160.gox crypto/sha1.gox \
-               crypto/sha256.gox crypto/sha512.gox hash.gox io.gox os.gox
-       $(BUILDARCHIVE)
-crypto/openpgp/libs2k.la: crypto/openpgp/libs2k.a
+crypto/openpgp/packet.lo: $(go_crypto_openpgp_packet_files) big.gox bytes.gox \
+               compress/flate.gox compress/zlib.gox crypto.gox \
+               crypto/aes.gox crypto/cast5.gox crypto/cipher.gox \
+               crypto/openpgp/error.gox crypto/openpgp/s2k.gox \
+               crypto/rand.gox crypto/rsa.gox crypto/sha1.gox \
+               crypto/subtle.gox encoding/binary.gox hash.gox io.gox \
+               io/ioutil.gox os.gox strconv.gox strings.gox
+       $(BUILDPACKAGE)
+crypto/openpgp/packet/check: $(CHECK_DEPS)
+       @$(MKDIR_P) crypto/openpgp/packet
+       $(CHECK)
+.PHONY: crypto/openpgp/packet/check
+
+crypto/openpgp/s2k.lo: $(go_crypto_openpgp_s2k_files) crypto.gox \
+               crypto/md5.gox crypto/openpgp/error.gox crypto/ripemd160.gox \
+               crypto/sha1.gox crypto/sha256.gox crypto/sha512.gox hash.gox \
+               io.gox os.gox
+       $(BUILDPACKAGE)
 crypto/openpgp/s2k/check: $(CHECK_DEPS)
        @$(MKDIR_P) crypto/openpgp/s2k
        $(CHECK)
 .PHONY: crypto/openpgp/s2k/check
 
-debug/libdwarf.a: $(go_debug_dwarf_files) encoding/binary.gox os.gox \
-               strconv.gox
-       $(BUILDARCHIVE)
-debug/libdwarf.la: debug/libdwarf.a
+debug/dwarf.lo: $(go_debug_dwarf_files) encoding/binary.gox os.gox strconv.gox
+       $(BUILDPACKAGE)
 debug/dwarf/check: $(CHECK_DEPS)
        @$(MKDIR_P) debug/dwarf
        $(CHECK)
 .PHONY: debug/dwarf/check
 
-debug/libelf.a: $(go_debug_elf_files) bytes.gox debug/dwarf.gox \
+debug/elf.lo: $(go_debug_elf_files) bytes.gox debug/dwarf.gox \
                encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-debug/libelf.la: debug/libelf.a
+       $(BUILDPACKAGE)
 debug/elf/check: $(CHECK_DEPS)
        @$(MKDIR_P) debug/elf
        $(CHECK)
 .PHONY: debug/elf/check
 
-debug/libgosym.a: $(go_debug_gosym_files) encoding/binary.gox fmt.gox os.gox \
+debug/gosym.lo: $(go_debug_gosym_files) encoding/binary.gox fmt.gox os.gox \
                strconv.gox strings.gox
-       $(BUILDARCHIVE)
-debug/libgosym.la: debug/libgosym.a
+       $(BUILDPACKAGE)
 debug/gosym/check: $(CHECK_DEPS)
        @$(MKDIR_P) debug/gosym
        $(CHECK)
 .PHONY: debug/gosym/check
 
-debug/libmacho.a: $(go_debug_macho_files) bytes.gox debug/dwarf.gox \
+debug/macho.lo: $(go_debug_macho_files) bytes.gox debug/dwarf.gox \
                encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-debug/libmacho.la: debug/libmacho.a
+       $(BUILDPACKAGE)
 debug/macho/check: $(CHECK_DEPS)
        @$(MKDIR_P) debug/macho
        $(CHECK)
 .PHONY: debug/macho/check
 
-debug/libpe.a: $(go_debug_pe_files) debug/dwarf.gox encoding/binary.gox \
-               fmt.gox io.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-debug/libpe.la: debug/libpe.a
+debug/pe.lo: $(go_debug_pe_files) debug/dwarf.gox \
+               encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
+       $(BUILDPACKAGE)
 debug/pe/check: $(CHECK_DEPS)
        @$(MKDIR_P) debug/pe
        $(CHECK)
 .PHONY: debug/pe/check
 
-debug/libproc.a: $(go_debug_proc_files) container/vector.gox fmt.gox \
+debug/proc.lo: $(go_debug_proc_files) container/vector.gox fmt.gox \
                io/ioutil.gox os.gox runtime.gox strconv.gox strings.gox \
                sync.gox syscall.gox
-       $(BUILDARCHIVE)
-debug/libproc.la: debug/libproc.a
+       $(BUILDPACKAGE)
 debug/proc/check: $(CHECK_DEPS)
        @$(MKDIR_P) debug/proc
        $(CHECK)
 .PHONY: debug/proc/check
 
-encoding/libascii85.a: $(go_encoding_ascii85_files) io.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-encoding/libascii85.la: encoding/libascii85.a
+encoding/ascii85.lo: $(go_encoding_ascii85_files) io.gox os.gox strconv.gox
+       $(BUILDPACKAGE)
 encoding/ascii85/check: $(CHECK_DEPS)
        @$(MKDIR_P) encoding/ascii85
        $(CHECK)
 .PHONY: encoding/ascii85/check
 
-encoding/libbase32.a: $(go_encoding_base32_files) io.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-encoding/libbase32.la: encoding/libbase32.a
+encoding/base32.lo: $(go_encoding_base32_files) io.gox os.gox strconv.gox
+       $(BUILDPACKAGE)
 encoding/base32/check: $(CHECK_DEPS)
        @$(MKDIR_P) encoding/base32
        $(CHECK)
 .PHONY: encoding/base32/check
 
-encoding/libbase64.a: $(go_encoding_base64_files) io.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-encoding/libbase64.la: encoding/libbase64.a
+encoding/base64.lo: $(go_encoding_base64_files) io.gox os.gox strconv.gox
+       $(BUILDPACKAGE)
 encoding/base64/check: $(CHECK_DEPS)
        @$(MKDIR_P) encoding/base64
        $(CHECK)
 .PHONY: encoding/base64/check
 
-encoding/libbinary.a: $(go_encoding_binary_files) io.gox math.gox os.gox \
+encoding/binary.lo: $(go_encoding_binary_files) io.gox math.gox os.gox \
                reflect.gox
-       $(BUILDARCHIVE)
-encoding/libbinary.la: encoding/libbinary.a
+       $(BUILDPACKAGE)
 encoding/binary/check: $(CHECK_DEPS)
        @$(MKDIR_P) encoding/binary
        $(CHECK)
 .PHONY: encoding/binary/check
 
-encoding/libgit85.a: $(go_encoding_git85_files) bytes.gox io.gox os.gox \
+encoding/git85.lo: $(go_encoding_git85_files) bytes.gox io.gox os.gox \
                strconv.gox
-       $(BUILDARCHIVE)
-encoding/libgit85.la: encoding/libgit85.a
+       $(BUILDPACKAGE)
 encoding/git85/check: $(CHECK_DEPS)
        @$(MKDIR_P) encoding/git85
        $(CHECK)
 .PHONY: encoding/git85/check
 
-encoding/libhex.a: $(go_encoding_hex_files) os.gox strconv.gox
-       $(BUILDARCHIVE)
-encoding/libhex.la: encoding/libhex.a
+encoding/hex.lo: $(go_encoding_hex_files) os.gox strconv.gox
+       $(BUILDPACKAGE)
 encoding/hex/check: $(CHECK_DEPS)
        @$(MKDIR_P) encoding/hex
        $(CHECK)
 .PHONY: encoding/hex/check
 
-encoding/libline.a: $(go_encoding_line_files) io.gox os.gox
-       $(BUILDARCHIVE)
-encoding/libline.la: encoding/libline.a
+encoding/line.lo: $(go_encoding_line_files) io.gox os.gox
+       $(BUILDPACKAGE)
 encoding/line/check: $(CHECK_DEPS)
        @$(MKDIR_P) encoding/line
        $(CHECK)
 .PHONY: encoding/line/check
 
-encoding/libpem.a: $(go_encoding_pem_files) bytes.gox encoding/base64.gox
-       $(BUILDARCHIVE)
-encoding/libpem.la: encoding/libpem.a
+encoding/pem.lo: $(go_encoding_pem_files) bytes.gox encoding/base64.gox
+       $(BUILDPACKAGE)
 encoding/pem/check: $(CHECK_DEPS)
        @$(MKDIR_P) encoding/pem
        $(CHECK)
 .PHONY: encoding/pem/check
 
-exp/libdatafmt.a: $(go_exp_datafmt_files) bytes.gox container/vector.gox \
+exp/datafmt.lo: $(go_exp_datafmt_files) bytes.gox container/vector.gox \
                fmt.gox go/scanner.gox go/token.gox io.gox os.gox reflect.gox \
                runtime.gox strconv.gox strings.gox
-       $(BUILDARCHIVE)
-exp/libdatafmt.la: exp/libdatafmt.a
+       $(BUILDPACKAGE)
 exp/datafmt/check: $(CHECK_DEPS)
        @$(MKDIR_P) exp/datafmt
        $(CHECK)
 .PHONY: exp/datafmt/check
 
-exp/libdraw.a: $(go_exp_draw_files) image.gox os.gox
-       $(BUILDARCHIVE)
-exp/libdraw.la: exp/libdraw.a
+exp/draw.lo: $(go_exp_draw_files) image.gox os.gox
+       $(BUILDPACKAGE)
 exp/draw/check: $(CHECK_DEPS)
        @$(MKDIR_P) exp/draw
        $(CHECK)
 .PHONY: exp/draw/check
 
-exp/libeval.a: $(go_exp_eval_files) big.gox go/ast.gox go/parser.gox \
+exp/eval.lo: $(go_exp_eval_files) big.gox go/ast.gox go/parser.gox \
                go/scanner.gox go/token.gox fmt.gox log.gox strconv.gox \
                strings.gox os.gox reflect.gox runtime.gox sort.gox template.gox
-       $(BUILDARCHIVE)
-exp/libeval.la: exp/libeval.a
+       $(BUILDPACKAGE)
 exp/eval/check: $(CHECK_DEPS)
        @$(MKDIR_P) exp/eval
        $(CHECK)
 .PHONY: exp/eval/check
 
-go/libast.a: $(go_go_ast_files) fmt.gox go/token.gox io.gox os.gox \
-               reflect.gox unicode.gox utf8.gox
-       $(BUILDARCHIVE)
-go/libast.la: go/libast.a
+go/ast.lo: $(go_go_ast_files) fmt.gox go/token.gox io.gox os.gox reflect.gox \
+               unicode.gox utf8.gox
+       $(BUILDPACKAGE)
 go/ast/check: $(CHECK_DEPS)
        @$(MKDIR_P) go/ast
        $(CHECK)
 .PHONY: go/ast/check
 
-go/libdoc.a: $(go_go_doc_files) go/ast.gox go/token.gox io.gox regexp.gox \
+go/doc.lo: $(go_go_doc_files) go/ast.gox go/token.gox io.gox regexp.gox \
                sort.gox strings.gox template.gox
-       $(BUILDARCHIVE)
-go/libdoc.la: go/libdoc.a
+       $(BUILDPACKAGE)
 go/doc/check: $(CHECK_DEPS)
        @$(MKDIR_P) go/doc
        $(CHECK)
 .PHONY: go/doc/check
 
-go/libparser.a: $(go_go_parser_files) bytes.gox fmt.gox go/ast.gox \
+go/parser.lo: $(go_go_parser_files) bytes.gox fmt.gox go/ast.gox \
                go/scanner.gox go/token.gox io.gox io/ioutil.gox os.gox \
                path.gox strings.gox
-       $(BUILDARCHIVE)
-go/libparser.la: go/libparser.a
+       $(BUILDPACKAGE)
 go/parser/check: $(CHECK_DEPS)
        @$(MKDIR_P) go/parser
        $(CHECK)
 .PHONY: go/parser/check
 
-go/libprinter.a: $(go_go_printer_files) bytes.gox fmt.gox go/ast.gox \
+go/printer.lo: $(go_go_printer_files) bytes.gox fmt.gox go/ast.gox \
                go/token.gox io.gox os.gox reflect.gox runtime.gox \
                strings.gox tabwriter.gox
-       $(BUILDARCHIVE)
-go/libprinter.la: go/libprinter.a
+       $(BUILDPACKAGE)
 go/printer/check: $(CHECK_DEPS)
        @$(MKDIR_P) go/printer
        $(CHECK)
 .PHONY: go/printer/check
 
-go/libscanner.a: $(go_go_scanner_files) bytes.gox container/vector.gox fmt.gox \
-               go/token.gox io.gox os.gox sort.gox strconv.gox unicode.gox \
-               utf8.gox
-       $(BUILDARCHIVE)
-go/libscanner.la: go/libscanner.a
+go/scanner.lo: $(go_go_scanner_files) bytes.gox container/vector.gox fmt.gox \
+               go/token.gox io.gox os.gox path.gox sort.gox strconv.gox \
+               unicode.gox utf8.gox
+       $(BUILDPACKAGE)
 go/scanner/check: $(CHECK_DEPS)
        @$(MKDIR_P) go/scanner
        $(CHECK)
 .PHONY: go/scanner/check
 
-go/libtoken.a: $(go_go_token_files) fmt.gox strconv.gox
-       $(BUILDARCHIVE)
-go/libtoken.la: go/libtoken.a
+go/token.lo: $(go_go_token_files) fmt.gox strconv.gox
+       $(BUILDPACKAGE)
 go/token/check: $(CHECK_DEPS)
        @$(MKDIR_P) go/token
        $(CHECK)
 .PHONY: go/token/check
 
-go/libtypechecker.a: $(go_go_typechecker_files) fmt.gox go/ast.gox \
-               go/token.gox go/scanner.gox os.gox
-       $(BUILDARCHIVE)
-go/libtypechecker.la: go/libtypechecker.a
+go/typechecker.lo: $(go_go_typechecker_files) fmt.gox go/ast.gox go/token.gox \
+               go/scanner.gox os.gox
+       $(BUILDPACKAGE)
 go/typechecker/check: $(CHECK_DEPS)
        @$(MKDIR_P) go/typechecker
        $(CHECK)
 .PHONY: go/typechecker/check
 
-hash/libadler32.a: $(go_hash_adler32_files) hash.gox os.gox
-       $(BUILDARCHIVE)
-hash/libadler32.la: hash/libadler32.a
+hash/adler32.lo: $(go_hash_adler32_files) hash.gox os.gox
+       $(BUILDPACKAGE)
 hash/adler32/check: $(CHECK_DEPS)
        @$(MKDIR_P) hash/adler32
        $(CHECK)
 .PHONY: hash/adler32/check
 
-hash/libcrc32.a: $(go_hash_crc32_files) hash.gox os.gox
-       $(BUILDARCHIVE)
-hash/libcrc32.la: hash/libcrc32.a
+hash/crc32.lo: $(go_hash_crc32_files) hash.gox os.gox
+       $(BUILDPACKAGE)
 hash/crc32/check: $(CHECK_DEPS)
        @$(MKDIR_P) hash/crc32
        $(CHECK)
 .PHONY: hash/crc32/check
 
-hash/libcrc64.a: $(go_hash_crc64_files) hash.gox os.gox
-       $(BUILDARCHIVE)
-hash/libcrc64.la: hash/libcrc64.a
+hash/crc64.lo: $(go_hash_crc64_files) hash.gox os.gox
+       $(BUILDPACKAGE)
 hash/crc64/check: $(CHECK_DEPS)
        @$(MKDIR_P) hash/crc64
        $(CHECK)
 .PHONY: hash/crc64/check
 
-http/libpprof.a: $(go_http_pprof_files) bufio.gox fmt.gox http.gox os.gox \
+http/pprof.lo: $(go_http_pprof_files) bufio.gox fmt.gox http.gox os.gox \
                runtime.gox runtime/pprof.gox strconv.gox strings.gox
-       $(BUILDARCHIVE)
-http/libpprof.la: http/libpprof.a
+       $(BUILDPACKAGE)
 http/pprof/check: $(CHECK_DEPS)
        @$(MKDIR_P) http/pprof
        $(CHECK)
 .PHONY: http/pprof/check
 
-image/libjpeg.a: $(go_image_jpeg_files) bufio.gox image.gox io.gox os.gox
-       $(BUILDARCHIVE)
-image/libjpeg.la: image/libjpeg.a
+image/jpeg.lo: $(go_image_jpeg_files) bufio.gox image.gox io.gox os.gox
+       $(BUILDPACKAGE)
 image/jpeg/check: $(CHECK_DEPS)
        @$(MKDIR_P) image/jpeg
        $(CHECK)
 .PHONY: image/jpeg/check
 
-image/libpng.a: $(go_image_png_files) bufio.gox compress/zlib.gox fmt.gox \
+image/png.lo: $(go_image_png_files) bufio.gox compress/zlib.gox fmt.gox \
                hash.gox hash/crc32.gox image.gox io.gox os.gox strconv.gox
-       $(BUILDARCHIVE)
-image/libpng.la: image/libpng.a
+       $(BUILDPACKAGE)
 image/png/check: $(CHECK_DEPS)
        @$(MKDIR_P) image/png
        $(CHECK)
 .PHONY: image/png/check
 
-index/libsuffixarray.a: $(go_index_suffixarray_files) bytes.gox regexp.gox \
+index/suffixarray.lo: $(go_index_suffixarray_files) bytes.gox regexp.gox \
                sort.gox
-       $(BUILDARCHIVE)
-index/libsuffixarray.la: index/libsuffixarray.a
+       $(BUILDPACKAGE)
 index/suffixarray/check: $(CHECK_DEPS)
        @$(MKDIR_P) index/suffixarray
        $(CHECK)
 .PHONY: index/suffixarray/check
 
-io/libioutil.a: $(go_io_ioutil_files) bytes.gox io.gox os.gox sort.gox \
+io/ioutil.lo: $(go_io_ioutil_files) bytes.gox io.gox os.gox sort.gox \
                strconv.gox
-       $(BUILDARCHIVE)
-io/libioutil.la: io/libioutil.a
+       $(BUILDPACKAGE)
 io/ioutil/check: $(CHECK_DEPS)
        @$(MKDIR_P) io/ioutil
        $(CHECK)
 .PHONY: io/ioutil/check
 
-mime/libmultipart.a: $(go_mime_multipart_files) bufio.gox bytes.gox io.gox \
+mime/multipart.lo: $(go_mime_multipart_files) bufio.gox bytes.gox io.gox \
                mime.gox os.gox regexp.gox strings.gox
-       $(BUILDARCHIVE)
-mime/libmultipart.la: mime/libmultipart.a
+       $(BUILDPACKAGE)
 mime/multipart/check: $(CHECK_DEPS)
        @$(MKDIR_P) mime/multipart
        $(CHECK)
 .PHONY: mime/multipart/check
 
-net/libdict.a: $(go_net_dict_files) container/vector.gox net/textproto.gox \
+net/dict.lo: $(go_net_dict_files) container/vector.gox net/textproto.gox \
                os.gox strconv.gox strings.gox
-       $(BUILDARCHIVE)
-net/libdict.la: net/libdict.a
+       $(BUILDPACKAGE)
 
-net/libtextproto.a: $(go_net_textproto_files) bufio.gox bytes.gox \
+net/textproto.lo: $(go_net_textproto_files) bufio.gox bytes.gox \
                container/vector.gox fmt.gox io.gox io/ioutil.gox net.gox \
                os.gox strconv.gox sync.gox
-       $(BUILDARCHIVE)
-net/libtextproto.la: net/libtextproto.a
+       $(BUILDPACKAGE)
 net/textproto/check: $(CHECK_DEPS)
        @$(MKDIR_P) net/textproto
        $(CHECK)
 .PHONY: net/textproto/check
 
-os/libinotify.a: $(go_os_inotify_files) fmt.gox os.gox strings.gox \
-               syscall.gox
-       $(BUILDARCHIVE)
-os/libinotify.la: os/libinotify.a
+os/inotify.lo: $(go_os_inotify_files) fmt.gox os.gox strings.gox syscall.gox
+       $(BUILDPACKAGE)
 os/inotify/check: $(CHECK_DEPS)
        @$(MKDIR_P) os/inotify
        $(CHECK)
 .PHONY: os/inotify/check
 
-os/libsignal.a: $(go_os_signal_files) runtime.gox strconv.gox
-       $(BUILDARCHIVE)
-os/libsignal.la: os/libsignal.a
+os/signal.lo: $(go_os_signal_files) runtime.gox strconv.gox
+       $(BUILDPACKAGE)
 os/signal/check: $(CHECK_DEPS)
        @$(MKDIR_P) os/signal
        $(CHECK)
@@ -2411,349 +2443,362 @@ unix.go: $(srcdir)/go/os/signal/mkunix.sh sysinfo.go
        $(SHELL) $(srcdir)/go/os/signal/mkunix.sh sysinfo.go > $@.tmp
        mv -f $@.tmp $@
 
-rpc/libjsonrpc.a: $(go_rpc_jsonrpc_files) fmt.gox io.gox json.gox net.gox \
+rpc/jsonrpc.lo: $(go_rpc_jsonrpc_files) fmt.gox io.gox json.gox net.gox \
                os.gox rpc.gox sync.gox
-       $(BUILDARCHIVE)
-rpc/libjsonrpc.la: rpc/libjsonrpc.a
+       $(BUILDPACKAGE)
 rpc/jsonrpc/check: $(CHECK_DEPS)
        @$(MKDIR_P) rpc/jsonrpc
        $(CHECK)
 .PHONY: rpc/jsonrpc/check
 
-runtime/libdebug.a: $(go_runtime_debug_files) bytes.gox fmt.gox io/ioutil.gox \
+runtime/debug.lo: $(go_runtime_debug_files) bytes.gox fmt.gox io/ioutil.gox \
                os.gox runtime.gox
-       $(BUILDARCHIVE)
-runtime/libdebug.la: runtime/libdebug.a
+       $(BUILDPACKAGE)
 runtime/debug/check: $(CHECK_DEPS)
        @$(MKDIR_P) runtime/debug
        $(CHECK)
 .PHONY: runtime/debug/check
 
-runtime/libpprof.a: $(go_runtime_pprof_files) bufio.gox fmt.gox io.gox os.gox \
+runtime/pprof.lo: $(go_runtime_pprof_files) bufio.gox fmt.gox io.gox os.gox \
                runtime.gox
-       $(BUILDARCHIVE)
-runtime/libpprof.la: runtime/libpprof.a
+       $(BUILDPACKAGE)
 runtime/pprof/check: $(CHECK_DEPS)
        @$(MKDIR_P) runtime/pprof
        $(CHECK)
 .PHONY: runtime/pprof/check
 
-testing/libiotest.a: $(go_testing_iotest_files) io.gox log.gox os.gox
-       $(BUILDARCHIVE)
-testing/libiotest.la: testing/libiotest.a
+sync/atomic.lo: $(go_sync_atomic_files)
+       $(BUILDPACKAGE)
+sync/atomic_c.lo: $(go_sync_atomic_c_files) sync/atomic.lo
+       $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
+sync/atomic/check: $(CHECK_DEPS)
+       @$(MKDIR_P) sync/atomic
+       $(CHECK)
+.PHONY: sync/atomic/check
+
+testing/iotest.lo: $(go_testing_iotest_files) io.gox log.gox os.gox
+       $(BUILDPACKAGE)
 testing/iotest/check: $(CHECK_DEPS)
        @$(MKDIR_P) testing/iotest
        $(CHECK)
 .PHONY: testing/iotest/check
 
-testing/libquick.a: $(go_testing_quick_files) flag.gox fmt.gox math.gox \
-               os.gox rand.gox reflect.gox strings.gox
-       $(BUILDARCHIVE)
-testing/libquick.la: testing/libquick.a
+testing/quick.lo: $(go_testing_quick_files) flag.gox fmt.gox math.gox os.gox \
+               rand.gox reflect.gox strings.gox
+       $(BUILDPACKAGE)
 testing/quick/check: $(CHECK_DEPS)
        @$(MKDIR_P) testing/quick
        $(CHECK)
 .PHONY: testing/quick/check
 
-testing/libscript.a: $(go_testing_script_files) fmt.gox os.gox rand.gox \
+testing/script.lo: $(go_testing_script_files) fmt.gox os.gox rand.gox \
                reflect.gox strings.gox
-       $(BUILDARCHIVE)
-testing/libscript.la: testing/libscript.a
+       $(BUILDPACKAGE)
 testing/script/check: $(CHECK_DEPS)
        @$(MKDIR_P) testing/script
        $(CHECK)
 .PHONY: testing/script/check
 
-sysinfo.go: $(srcdir)/mksysinfo.sh config.h
-       CC="$(CC)" $(SHELL) $(srcdir)/mksysinfo.sh
-syscalls/libsyscall.a: $(go_syscall_files) $(go_syscall_c_files) sync.gox
-       rm -f syscall.gox syscalls/libsyscall.a
-       test -d syscalls || $(MKDIR_P) syscalls
-       files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e's/[^ ]*\.c//g'`; \
-       $(LTGOCOMPILE) -c -fgo-prefix="libgo_syscalls" -o syscalls/syscall.$(OBJEXT) $$files
-       $(LTCOMPILE) -c -o syscalls/errno.$(OBJEXT) $(srcdir)/syscalls/errno.c
-       $(AR) rc syscalls/libsyscall.a syscalls/syscall.$(OBJEXT) syscalls/errno.$(OBJEXT)
-syscalls/libsyscall.la: syscalls/libsyscall.a
-       $(LINK) syscalls/syscall.lo syscalls/errno.lo
-
-# How to build a .gox file from a .a file.
+sysinfo.go: s-sysinfo; @true
+s-sysinfo: $(srcdir)/mksysinfo.sh config.h
+       CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
+       $(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
+       $(STAMP) $@
+
+syscalls/syscall.lo: $(go_syscall_files) sync.gox
+       $(BUILDPACKAGE)
+syscalls/errno.lo: $(go_syscall_c_files) syscalls/syscall.lo
+       $(LTCOMPILE) -c -o $@ $(srcdir)/syscalls/errno.c
+
+# How to build a .gox file from a .lo file.
 BUILDGOX = \
-       set -e; \
-       rm -f $@.$(OBJEXT); \
-       $(CC) -r -nostdlib -o $@.$(OBJEXT) -Wl,--whole-archive $<; \
-       $(OBJCOPY) -j .go_export $@.$(OBJEXT) $@.tmp; \
-       mv -f $@.tmp $@; \
-       rm -f $@.$(OBJEXT)
+       f=`echo $< | sed -e 's/.lo$$/.o/'`; \
+       $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
 
-asn1.gox: asn1/libasn1.a
+asn1.gox: asn1/asn1.lo
        $(BUILDGOX)
-big.gox: big/libbig.a
+big.gox: big/big.lo
        $(BUILDGOX)
-bufio.gox: bufio/libbufio.a
+bufio.gox: bufio/bufio.lo
        $(BUILDGOX)
-bytes.gox: bytes/libbytes.a
+bytes.gox: bytes/bytes.lo
        $(BUILDGOX)
-cmath.gox: cmath/libcmath.a
+cmath.gox: cmath/cmath.lo
        $(BUILDGOX)
-ebnf.gox: ebnf/libebnf.a
+crypto.gox: crypto/crypto.lo
        $(BUILDGOX)
-exec.gox: exec/libexec.a
+ebnf.gox: ebnf/ebnf.lo
        $(BUILDGOX)
-expvar.gox: expvar/libexpvar.a
+exec.gox: exec/exec.lo
        $(BUILDGOX)
-flag.gox: flag/libflag.a
+expvar.gox: expvar/expvar.lo
        $(BUILDGOX)
-fmt.gox: fmt/libfmt.a
+flag.gox: flag/flag.lo
        $(BUILDGOX)
-gob.gox: gob/libgob.a
+fmt.gox: fmt/fmt.lo
        $(BUILDGOX)
-hash.gox: hash/libhash.a
+gob.gox: gob/gob.lo
        $(BUILDGOX)
-html.gox: html/libhtml.a
+hash.gox: hash/hash.lo
        $(BUILDGOX)
-http.gox: http/libhttp.a
+html.gox: html/html.lo
        $(BUILDGOX)
-image.gox: image/libimage.a
+http.gox: http/http.lo
        $(BUILDGOX)
-io.gox: io/libio.a
+image.gox: image/image.lo
        $(BUILDGOX)
-json.gox: json/libjson.a
+io.gox: io/io.lo
        $(BUILDGOX)
-log.gox: log/liblog.a
+json.gox: json/json.lo
        $(BUILDGOX)
-math.gox: math/libmath.a
+log.gox: log/log.lo
        $(BUILDGOX)
-mime.gox: mime/libmime.a
+math.gox: math/math.lo
        $(BUILDGOX)
-net.gox: net/libnet.a
+mime.gox: mime/mime.lo
        $(BUILDGOX)
-netchan.gox: netchan/libnetchan.a
+net.gox: net/net.lo
        $(BUILDGOX)
-os.gox: os/libos.a
+netchan.gox: netchan/netchan.lo
        $(BUILDGOX)
-patch.gox: patch/libpatch.a
+os.gox: os/os.lo
        $(BUILDGOX)
-path.gox: path/libpath.a
+patch.gox: patch/patch.lo
        $(BUILDGOX)
-rand.gox: rand/librand.a
+path.gox: path/path.lo
        $(BUILDGOX)
-reflect.gox: reflect/libreflect.a
+rand.gox: rand/rand.lo
        $(BUILDGOX)
-regexp.gox: regexp/libregexp.a
+reflect.gox: reflect/reflect.lo
        $(BUILDGOX)
-rpc.gox: rpc/librpc.a
+regexp.gox: regexp/regexp.lo
        $(BUILDGOX)
-runtime.gox: runtime/libruntime.a
+rpc.gox: rpc/rpc.lo
        $(BUILDGOX)
-scanner.gox: scanner/libscanner.a
+runtime.gox: runtime/runtime.lo
        $(BUILDGOX)
-smtp.gox: smtp/libsmtp.a
+scanner.gox: scanner/scanner.lo
        $(BUILDGOX)
-sort.gox: sort/libsort.a
+smtp.gox: smtp/smtp.lo
        $(BUILDGOX)
-strconv.gox: strconv/libstrconv.a
+sort.gox: sort/sort.lo
        $(BUILDGOX)
-strings.gox: strings/libstrings.a
+strconv.gox: strconv/strconv.lo
        $(BUILDGOX)
-sync.gox: sync/libsync.a
+strings.gox: strings/strings.lo
        $(BUILDGOX)
-syslog.gox: syslog/libsyslog.a
+sync.gox: sync/sync.lo
        $(BUILDGOX)
-syscall.gox: syscalls/libsyscall.a
+syslog.gox: syslog/syslog.lo
        $(BUILDGOX)
-tabwriter.gox: tabwriter/libtabwriter.a
+syscall.gox: syscalls/syscall.lo
        $(BUILDGOX)
-template.gox: template/libtemplate.a
+tabwriter.gox: tabwriter/tabwriter.lo
        $(BUILDGOX)
-testing.gox: testing/libtesting.a
+template.gox: template/template.lo
        $(BUILDGOX)
-time.gox: time/libtime.a
+testing.gox: testing/testing.lo
        $(BUILDGOX)
-try.gox: try/libtry.a
+time.gox: time/time.lo
        $(BUILDGOX)
-unicode.gox: unicode/libunicode.a
+try.gox: try/try.lo
        $(BUILDGOX)
-utf16.gox: utf16/libutf16.a
+unicode.gox: unicode/unicode.lo
        $(BUILDGOX)
-utf8.gox: utf8/libutf8.a
+utf16.gox: utf16/utf16.lo
        $(BUILDGOX)
-websocket.gox: websocket/libwebsocket.a
+utf8.gox: utf8/utf8.lo
        $(BUILDGOX)
-xml.gox: xml/libxml.a
+websocket.gox: websocket/websocket.lo
+       $(BUILDGOX)
+xml.gox: xml/xml.lo
        $(BUILDGOX)
 
-archive/tar.gox: archive/libtar.a
+archive/tar.gox: archive/tar.lo
        $(BUILDGOX)
-archive/zip.gox: archive/libzip.a
+archive/zip.gox: archive/zip.lo
        $(BUILDGOX)
 
-compress/flate.gox: compress/libflate.a
+compress/bzip2.gox: compress/bzip2.lo
+       $(BUILDGOX)
+compress/flate.gox: compress/flate.lo
        $(BUILDGOX)
-compress/gzip.gox: compress/libgzip.a
+compress/gzip.gox: compress/gzip.lo
        $(BUILDGOX)
-compress/zlib.gox: compress/libzlib.a
+compress/lzw.gox: compress/lzw.lo
+       $(BUILDGOX)
+compress/zlib.gox: compress/zlib.lo
        $(BUILDGOX)
 
-container/heap.gox: container/libheap.a
+container/heap.gox: container/heap.lo
        $(BUILDGOX)
-container/list.gox: container/liblist.a
+container/list.gox: container/list.lo
        $(BUILDGOX)
-container/ring.gox: container/libring.a
+container/ring.gox: container/ring.lo
        $(BUILDGOX)
-container/vector.gox: container/libvector.a
+container/vector.gox: container/vector.lo
        $(BUILDGOX)
 
-crypto/aes.gox: crypto/libaes.a
+crypto/aes.gox: crypto/aes.lo
+       $(BUILDGOX)
+crypto/block.gox: crypto/block.lo
        $(BUILDGOX)
-crypto/block.gox: crypto/libblock.a
+crypto/blowfish.gox: crypto/blowfish.lo
        $(BUILDGOX)
-crypto/blowfish.gox: crypto/libblowfish.a
+crypto/cast5.gox: crypto/cast5.lo
        $(BUILDGOX)
-crypto/cast5.gox: crypto/libcast5.a
+crypto/cipher.gox: crypto/cipher.lo
        $(BUILDGOX)
-crypto/cipher.gox: crypto/libcipher.a
+crypto/dsa.gox: crypto/dsa.lo
        $(BUILDGOX)
-crypto/elliptic.gox: crypto/libelliptic.a
+crypto/elliptic.gox: crypto/elliptic.lo
        $(BUILDGOX)
-crypto/hmac.gox: crypto/libhmac.a
+crypto/hmac.gox: crypto/hmac.lo
        $(BUILDGOX)
-crypto/md4.gox: crypto/libmd4.a
+crypto/md4.gox: crypto/md4.lo
        $(BUILDGOX)
-crypto/md5.gox: crypto/libmd5.a
+crypto/md5.gox: crypto/md5.lo
        $(BUILDGOX)
-crypto/ocsp.gox: crypto/libocsp.a
+crypto/ocsp.gox: crypto/ocsp.lo
        $(BUILDGOX)
-crypto/rand.gox: crypto/librand.a
+crypto/openpgp.gox: crypto/openpgp.lo
        $(BUILDGOX)
-crypto/rc4.gox: crypto/librc4.a
+crypto/rand.gox: crypto/rand.lo
        $(BUILDGOX)
-crypto/ripemd160.gox: crypto/libripemd160.a
+crypto/rc4.gox: crypto/rc4.lo
        $(BUILDGOX)
-crypto/rsa.gox: crypto/librsa.a
+crypto/ripemd160.gox: crypto/ripemd160.lo
        $(BUILDGOX)
-crypto/sha1.gox: crypto/libsha1.a
+crypto/rsa.gox: crypto/rsa.lo
        $(BUILDGOX)
-crypto/sha256.gox: crypto/libsha256.a
+crypto/sha1.gox: crypto/sha1.lo
        $(BUILDGOX)
-crypto/sha512.gox: crypto/libsha512.a
+crypto/sha256.gox: crypto/sha256.lo
        $(BUILDGOX)
-crypto/subtle.gox: crypto/libsubtle.a
+crypto/sha512.gox: crypto/sha512.lo
        $(BUILDGOX)
-crypto/tls.gox: crypto/libtls.a
+crypto/subtle.gox: crypto/subtle.lo
        $(BUILDGOX)
-crypto/twofish.gox: crypto/libtwofish.a
+crypto/tls.gox: crypto/tls.lo
        $(BUILDGOX)
-crypto/x509.gox: crypto/libx509.a
+crypto/twofish.gox: crypto/twofish.lo
        $(BUILDGOX)
-crypto/xtea.gox: crypto/libxtea.a
+crypto/x509.gox: crypto/x509.lo
+       $(BUILDGOX)
+crypto/xtea.gox: crypto/xtea.lo
        $(BUILDGOX)
 
-crypto/openpgp/armor.gox: crypto/openpgp/libarmor.a
+crypto/openpgp/armor.gox: crypto/openpgp/armor.lo
+       $(BUILDGOX)
+crypto/openpgp/error.gox: crypto/openpgp/error.lo
        $(BUILDGOX)
-crypto/openpgp/error.gox: crypto/openpgp/liberror.a
+crypto/openpgp/packet.gox: crypto/openpgp/packet.lo
        $(BUILDGOX)
-crypto/openpgp/s2k.gox: crypto/openpgp/libs2k.a
+crypto/openpgp/s2k.gox: crypto/openpgp/s2k.lo
        $(BUILDGOX)
 
-debug/dwarf.gox: debug/libdwarf.a
+debug/dwarf.gox: debug/dwarf.lo
        $(BUILDGOX)
-debug/elf.gox: debug/libelf.a
+debug/elf.gox: debug/elf.lo
        $(BUILDGOX)
-debug/gosym.gox: debug/libgosym.a
+debug/gosym.gox: debug/gosym.lo
        $(BUILDGOX)
-debug/macho.gox: debug/libmacho.a
+debug/macho.gox: debug/macho.lo
        $(BUILDGOX)
-debug/pe.gox: debug/libpe.a
+debug/pe.gox: debug/pe.lo
        $(BUILDGOX)
-debug/proc.gox: debug/libproc.a
+debug/proc.gox: debug/proc.lo
        $(BUILDGOX)
 
-encoding/ascii85.gox: encoding/libascii85.a
+encoding/ascii85.gox: encoding/ascii85.lo
        $(BUILDGOX)
-encoding/base32.gox: encoding/libbase32.a
+encoding/base32.gox: encoding/base32.lo
        $(BUILDGOX)
-encoding/base64.gox: encoding/libbase64.a
+encoding/base64.gox: encoding/base64.lo
        $(BUILDGOX)
-encoding/binary.gox: encoding/libbinary.a
+encoding/binary.gox: encoding/binary.lo
        $(BUILDGOX)
-encoding/git85.gox: encoding/libgit85.a
+encoding/git85.gox: encoding/git85.lo
        $(BUILDGOX)
-encoding/hex.gox: encoding/libhex.a
+encoding/hex.gox: encoding/hex.lo
        $(BUILDGOX)
-encoding/line.gox: encoding/libline.a
+encoding/line.gox: encoding/line.lo
        $(BUILDGOX)
-encoding/pem.gox: encoding/libpem.a
+encoding/pem.gox: encoding/pem.lo
        $(BUILDGOX)
 
-exp/datafmt.gox: exp/libdatafmt.a
+exp/datafmt.gox: exp/datafmt.lo
        $(BUILDGOX)
-exp/draw.gox: exp/libdraw.a
+exp/draw.gox: exp/draw.lo
        $(BUILDGOX)
-exp/eval.gox: exp/libeval.a
+exp/eval.gox: exp/eval.lo
        $(BUILDGOX)
 
-go/ast.gox: go/libast.a
+go/ast.gox: go/ast.lo
        $(BUILDGOX)
-go/doc.gox: go/libdoc.a
+go/doc.gox: go/doc.lo
        $(BUILDGOX)
-go/parser.gox: go/libparser.a
+go/parser.gox: go/parser.lo
        $(BUILDGOX)
-go/printer.gox: go/libprinter.a
+go/printer.gox: go/printer.lo
        $(BUILDGOX)
-go/scanner.gox: go/libscanner.a
+go/scanner.gox: go/scanner.lo
        $(BUILDGOX)
-go/token.gox: go/libtoken.a
+go/token.gox: go/token.lo
        $(BUILDGOX)
-go/typechecker.gox: go/libtypechecker.a
+go/typechecker.gox: go/typechecker.lo
        $(BUILDGOX)
 
-hash/adler32.gox: hash/libadler32.a
+hash/adler32.gox: hash/adler32.lo
        $(BUILDGOX)
-hash/crc32.gox: hash/libcrc32.a
+hash/crc32.gox: hash/crc32.lo
        $(BUILDGOX)
-hash/crc64.gox: hash/libcrc64.a
+hash/crc64.gox: hash/crc64.lo
        $(BUILDGOX)
 
-http/pprof.gox: http/libpprof.a
+http/pprof.gox: http/pprof.lo
        $(BUILDGOX)
 
-image/jpeg.gox: image/libjpeg.a
+image/jpeg.gox: image/jpeg.lo
        $(BUILDGOX)
-image/png.gox: image/libpng.a
+image/png.gox: image/png.lo
        $(BUILDGOX)
 
-index/suffixarray.gox: index/libsuffixarray.a
+index/suffixarray.gox: index/suffixarray.lo
        $(BUILDGOX)
 
-io/ioutil.gox: io/libioutil.a
+io/ioutil.gox: io/ioutil.lo
        $(BUILDGOX)
 
-mime/multipart.gox: mime/libmultipart.a
+mime/multipart.gox: mime/multipart.lo
        $(BUILDGOX)
 
-net/dict.gox: net/libdict.a
+net/dict.gox: net/dict.lo
        $(BUILDGOX)
-net/textproto.gox: net/libtextproto.a
+net/textproto.gox: net/textproto.lo
        $(BUILDGOX)
 
-os/inotify.gox: os/libinotify.a
+os/inotify.gox: os/inotify.lo
        $(BUILDGOX)
-os/signal.gox: os/libsignal.a
+os/signal.gox: os/signal.lo
        $(BUILDGOX)
 
-rpc/jsonrpc.gox: rpc/libjsonrpc.a
+rpc/jsonrpc.gox: rpc/jsonrpc.lo
        $(BUILDGOX)
 
-runtime/debug.gox: runtime/libdebug.a
+runtime/debug.gox: runtime/debug.lo
        $(BUILDGOX)
-runtime/pprof.gox: runtime/libpprof.a
+runtime/pprof.gox: runtime/pprof.lo
+       $(BUILDGOX)
+
+sync/atomic.gox: sync/atomic.lo
        $(BUILDGOX)
 
-testing/iotest.gox: testing/libiotest.a
+testing/iotest.gox: testing/iotest.lo
        $(BUILDGOX)
-testing/quick.gox: testing/libquick.a
+testing/quick.gox: testing/quick.lo
        $(BUILDGOX)
-testing/script.gox: testing/libscript.a
+testing/script.gox: testing/script.lo
        $(BUILDGOX)
 
 if LIBGO_IS_LINUX
@@ -2776,13 +2821,13 @@ TEST_PACKAGES = \
        fmt/check \
        gob/check \
        html/check \
-       http/check \
+       $(if $(GCCGO_RUN_ALL_TESTS),http/check) \
        io/check \
        json/check \
        log/check \
        math/check \
        mime/check \
-       net/check \
+       $(if $(GCCGO_RUN_ALL_TESTS),net/check) \
        netchan/check \
        os/check \
        patch/check \
@@ -2798,7 +2843,7 @@ TEST_PACKAGES = \
        strconv/check \
        strings/check \
        sync/check \
-       syslog/check \
+       $(if $(GCCGO_RUN_ALL_TESTS),syslog/check) \
        tabwriter/check \
        template/check \
        time/check \
@@ -2810,8 +2855,10 @@ TEST_PACKAGES = \
        xml/check \
        archive/tar/check \
        archive/zip/check \
+       compress/bzip2/check \
        compress/flate/check \
        compress/gzip/check \
+       compress/lzw/check \
        compress/zlib/check \
        container/heap/check \
        container/list/check \
@@ -2822,11 +2869,13 @@ TEST_PACKAGES = \
        crypto/blowfish/check \
        crypto/cast5/check \
        crypto/cipher/check \
+       crypto/dsa/check \
        crypto/elliptic/check \
        crypto/hmac/check \
        crypto/md4/check \
        crypto/md5/check \
        crypto/ocsp/check \
+       crypto/openpgp/check \
        crypto/rand/check \
        crypto/rc4/check \
        crypto/ripemd160/check \
@@ -2840,6 +2889,7 @@ TEST_PACKAGES = \
        crypto/x509/check \
        crypto/xtea/check \
        crypto/openpgp/armor/check \
+       crypto/openpgp/packet/check \
        crypto/openpgp/s2k/check \
        debug/dwarf/check \
        debug/elf/check \
@@ -2872,6 +2922,7 @@ TEST_PACKAGES = \
        $(os_inotify_check) \
        os/signal/check \
        rpc/jsonrpc/check \
+       sync/atomic/check \
        testing/quick/check \
        testing/script/check