summaryrefslogtreecommitdiff
path: root/libgo/Makefile.am
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-29 21:32:07 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-29 21:32:07 +0000
commite84aed9bec3b70a1be028e7281e04a9da9fc8a91 (patch)
treeaa5f74a4d0eb6381dceb583054cf94cd489e4b77 /libgo/Makefile.am
parent2ea4f9d1e5420285c57d770b95594ee80440dde1 (diff)
downloadgcc-e84aed9bec3b70a1be028e7281e04a9da9fc8a91.tar.gz
runtime: Support -buildmode=c-shared.
These changes permit using the go tool from the upcoming Go 1.5 release with -buildmode=c-archive to build gccgo code into an archive file that can be linked with a C program. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@222595 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/Makefile.am')
-rw-r--r--libgo/Makefile.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/libgo/Makefile.am b/libgo/Makefile.am
index 15af3dc1bec..fa4fcaa6404 100644
--- a/libgo/Makefile.am
+++ b/libgo/Makefile.am
@@ -105,7 +105,7 @@ toolexeclib_LTLIBRARIES = libgo-llgo.la
toolexeclib_LIBRARIES = libgobegin-llgo.a
else
toolexeclib_LTLIBRARIES = libgo.la
-toolexeclib_LIBRARIES = libgobegin.a libnetgo.a
+toolexeclib_LIBRARIES = libgobegin.a libgolibbegin.a libnetgo.a
endif
toolexeclibgo_DATA = \
@@ -2036,6 +2036,11 @@ libgobegin_llgo_a_SOURCES = \
libgobegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
libgobegin_llgo_a_CFLAGS = $(AM_CFLAGS) -fPIC
+libgolibbegin_a_SOURCES = \
+ runtime/go-libmain.c
+
+libgolibbegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
+
libnetgo_a_SOURCES = $(go_netgo_files)
libnetgo_a_LIBADD = netgo.o
@@ -2067,7 +2072,7 @@ BUILDPACKAGE = \
BUILDNETGO = \
$(MKDIR_P) $(@D); \
files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
- $(GOCOMPILE) -I . -c -fgo-pkgpath=net -o $@ $$files
+ $(GOCOMPILE) -I . -c -fPIC -fgo-pkgpath=net -o $@ $$files
GOTESTFLAGS =
GOBENCH =