aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/Make-lang.in
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2010-12-07 14:18:35 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2010-12-07 14:18:35 +0000
commitac819ba59a7462c52e2fbdf84a7eb8830ee3a0bf (patch)
tree4e004db08599eca98825ffe95c8231bca1fcf078 /gcc/go/Make-lang.in
parent501c95ff0546ff1d2632017c6f66fc0cd83566f7 (diff)
downloadgcc-ac819ba59a7462c52e2fbdf84a7eb8830ee3a0bf.zip
gcc-ac819ba59a7462c52e2fbdf84a7eb8830ee3a0bf.tar.gz
gcc-ac819ba59a7462c52e2fbdf84a7eb8830ee3a0bf.tar.bz2
re PR other/46789 (go configuration with --prefix=/usr pollutes the /usr/lib namespace)
PR other/46789 PR bootstrap/46812 * go-lang.c (go_char_p): Define type and vectors. (go_search_dirs): New static variable. (go_langhook_handle_option): Use version and version/machine directories for -L. (go_langhook_post_options): Add non-specific -L paths. * Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and DEFAULT_TARGET_MACHINE when compiling. * gccgo.texi (Invoking gccgo): Only document -L for linking. (Import and Export): Don't mention -L for finding import files. libgo: Install .gox files in version and target specific directory. From-SVN: r167537
Diffstat (limited to 'gcc/go/Make-lang.in')
-rw-r--r--gcc/go/Make-lang.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/go/Make-lang.in b/gcc/go/Make-lang.in
index fc981d4..4d00816 100644
--- a/gcc/go/Make-lang.in
+++ b/gcc/go/Make-lang.in
@@ -218,10 +218,16 @@ GO_IMPORT_H = go/gofrontend/import.h go/gofrontend/export.h
go/go-backend.o: go/go-backend.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
$(TREE_H) $(TM_H) $(TM_P_H)
+
go/go-lang.o: go/go-lang.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(OPTS_H) \
- $(TREE_H) $(GIMPLE_H) $(GGC_H) $(TOPLEV_H) debug.h options.h \
- $(FLAGS_H) convert.h $(DIAGNOSTIC_H) langhooks.h $(LANGHOOKS_DEF_H) \
- $(EXCEPT_H) $(TARGET_H) $(GO_C_H) gt-go-go-lang.h gtype-go.h
+ $(TREE_H) $(GIMPLE_H) $(GGC_H) $(TOPLEV_H) debug.h options.h \
+ $(FLAGS_H) convert.h $(DIAGNOSTIC_H) langhooks.h \
+ $(LANGHOOKS_DEF_H) $(EXCEPT_H) $(TARGET_H) $(GO_C_H) \
+ gt-go-go-lang.h gtype-go.h
+ $(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
+ -DDEFAULT_TARGET_VERSION=\"$(version)\" \
+ -DDEFAULT_TARGET_MACHINE=\"$(target_noncanonical)\" \
+ -c $< $(OUTPUT_OPTION)
GOINCLUDES = -I $(srcdir)/go -I $(srcdir)/go/gofrontend