go-libgcc.patch 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. diff -Nur gcc-5.4.0.orig/gotools/Makefile.in gcc-5.4.0/gotools/Makefile.in
  2. --- gcc-5.4.0.orig/gotools/Makefile.in 2015-03-24 20:50:31.000000000 +0100
  3. +++ gcc-5.4.0/gotools/Makefile.in 2016-09-11 19:42:36.812879672 +0200
  4. @@ -231,7 +231,7 @@
  5. @NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET)
  6. GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
  7. AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs
  8. -GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o $@
  9. +GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) -lgcc_s $(AM_LDFLAGS) -o $@
  10. cmdsrcdir = $(srcdir)/../libgo/go/cmd
  11. go_cmd_go_files = \
  12. $(cmdsrcdir)/go/build.go \
  13. diff -Nur gcc-5.4.0.orig/gotools/Makefile.in.orig gcc-5.4.0/gotools/Makefile.in.orig
  14. --- gcc-5.4.0.orig/gotools/Makefile.in.orig 1970-01-01 01:00:00.000000000 +0100
  15. +++ gcc-5.4.0/gotools/Makefile.in.orig 2015-03-24 20:50:31.000000000 +0100
  16. @@ -0,0 +1,648 @@
  17. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  18. +# @configure_input@
  19. +
  20. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  21. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  22. +# Inc.
  23. +# This Makefile.in is free software; the Free Software Foundation
  24. +# gives unlimited permission to copy and/or distribute it,
  25. +# with or without modifications, as long as this notice is preserved.
  26. +
  27. +# This program is distributed in the hope that it will be useful,
  28. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  29. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  30. +# PARTICULAR PURPOSE.
  31. +
  32. +@SET_MAKE@
  33. +
  34. +# Makefile for gotools
  35. +# Copyright 2015 Free Software Foundation, Inc.
  36. +#
  37. +# This file is free software; you can redistribute it and/or modify
  38. +# it under the terms of the GNU General Public License as published by
  39. +# the Free Software Foundation; either version 3 of the License, or
  40. +# (at your option) any later version.
  41. +#
  42. +# This program is distributed in the hope that it will be useful,
  43. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  44. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  45. +# GNU General Public License for more details.
  46. +#
  47. +# You should have received a copy of the GNU General Public License
  48. +# along with this program; see the file COPYING3. If not see
  49. +# <http://www.gnu.org/licenses/>.
  50. +
  51. +VPATH = @srcdir@
  52. +pkgdatadir = $(datadir)/@PACKAGE@
  53. +pkgincludedir = $(includedir)/@PACKAGE@
  54. +pkglibdir = $(libdir)/@PACKAGE@
  55. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  56. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  57. +install_sh_DATA = $(install_sh) -c -m 644
  58. +install_sh_PROGRAM = $(install_sh) -c
  59. +install_sh_SCRIPT = $(install_sh) -c
  60. +INSTALL_HEADER = $(INSTALL_DATA)
  61. +transform = $(program_transform_name)
  62. +NORMAL_INSTALL = :
  63. +PRE_INSTALL = :
  64. +POST_INSTALL = :
  65. +NORMAL_UNINSTALL = :
  66. +PRE_UNINSTALL = :
  67. +POST_UNINSTALL = :
  68. +build_triplet = @build@
  69. +host_triplet = @host@
  70. +target_triplet = @target@
  71. +subdir = .
  72. +DIST_COMMON = README ChangeLog $(srcdir)/Makefile.in \
  73. + $(srcdir)/Makefile.am $(top_srcdir)/configure \
  74. + $(am__configure_deps) $(srcdir)/../mkinstalldirs \
  75. + $(srcdir)/../depcomp
  76. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  77. +am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
  78. + $(top_srcdir)/../config/depstand.m4 \
  79. + $(top_srcdir)/../config/lead-dot.m4 \
  80. + $(top_srcdir)/../config/override.m4 $(top_srcdir)/config/go.m4 \
  81. + $(top_srcdir)/configure.ac
  82. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  83. + $(ACLOCAL_M4)
  84. +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  85. + configure.lineno config.status.lineno
  86. +CONFIG_CLEAN_FILES =
  87. +CONFIG_CLEAN_VPATH_FILES =
  88. +am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
  89. +PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
  90. +cgo_SOURCES = cgo.c
  91. +cgo_OBJECTS = cgo.$(OBJEXT)
  92. +cgo_LDADD = $(LDADD)
  93. +go_SOURCES = go.c
  94. +go_OBJECTS = go.$(OBJEXT)
  95. +go_LDADD = $(LDADD)
  96. +gofmt_SOURCES = gofmt.c
  97. +gofmt_OBJECTS = gofmt.$(OBJEXT)
  98. +gofmt_LDADD = $(LDADD)
  99. +DEFAULT_INCLUDES = -I.@am__isrc@
  100. +depcomp = $(SHELL) $(top_srcdir)/../depcomp
  101. +am__depfiles_maybe = depfiles
  102. +am__mv = mv -f
  103. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  104. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  105. +CCLD = $(CC)
  106. +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
  107. +SOURCES = cgo.c go.c gofmt.c
  108. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  109. +am__vpath_adj = case $$p in \
  110. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  111. + *) f=$$p;; \
  112. + esac;
  113. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  114. +am__install_max = 40
  115. +am__nobase_strip_setup = \
  116. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  117. +am__nobase_strip = \
  118. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  119. +am__nobase_list = $(am__nobase_strip_setup); \
  120. + for p in $$list; do echo "$$p $$p"; done | \
  121. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  122. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  123. + if (++n[$$2] == $(am__install_max)) \
  124. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  125. + END { for (dir in files) print dir, files[dir] }'
  126. +am__base_list = \
  127. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  128. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  129. +man1dir = $(mandir)/man1
  130. +NROFF = nroff
  131. +MANS = $(man_MANS)
  132. +ETAGS = etags
  133. +CTAGS = ctags
  134. +ACLOCAL = @ACLOCAL@
  135. +AMTAR = @AMTAR@
  136. +AUTOCONF = @AUTOCONF@
  137. +AUTOHEADER = @AUTOHEADER@
  138. +AUTOMAKE = @AUTOMAKE@
  139. +AWK = @AWK@
  140. +CC = @CC@
  141. +CCDEPMODE = @CCDEPMODE@
  142. +CFLAGS = @CFLAGS@
  143. +CPPFLAGS = @CPPFLAGS@
  144. +CYGPATH_W = @CYGPATH_W@
  145. +DEFS = @DEFS@
  146. +DEPDIR = @DEPDIR@
  147. +ECHO_C = @ECHO_C@
  148. +ECHO_N = @ECHO_N@
  149. +ECHO_T = @ECHO_T@
  150. +EXEEXT = @EXEEXT@
  151. +GOC = @GOC@
  152. +GOCFLAGS = $(CFLAGS_FOR_TARGET)
  153. +INSTALL = @INSTALL@
  154. +INSTALL_DATA = @INSTALL_DATA@
  155. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  156. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  157. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  158. +LDFLAGS = @LDFLAGS@
  159. +LIBOBJS = @LIBOBJS@
  160. +LIBS = @LIBS@
  161. +LTLIBOBJS = @LTLIBOBJS@
  162. +MAINT = @MAINT@
  163. +MAKEINFO = @MAKEINFO@
  164. +MKDIR_P = @MKDIR_P@
  165. +NET_LIBS = @NET_LIBS@
  166. +OBJEXT = @OBJEXT@
  167. +PACKAGE = @PACKAGE@
  168. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  169. +PACKAGE_NAME = @PACKAGE_NAME@
  170. +PACKAGE_STRING = @PACKAGE_STRING@
  171. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  172. +PACKAGE_URL = @PACKAGE_URL@
  173. +PACKAGE_VERSION = @PACKAGE_VERSION@
  174. +PATH_SEPARATOR = @PATH_SEPARATOR@
  175. +SET_MAKE = @SET_MAKE@
  176. +SHELL = @SHELL@
  177. +STRIP = @STRIP@
  178. +VERSION = @VERSION@
  179. +abs_builddir = @abs_builddir@
  180. +abs_srcdir = @abs_srcdir@
  181. +abs_top_builddir = @abs_top_builddir@
  182. +abs_top_srcdir = @abs_top_srcdir@
  183. +ac_ct_CC = @ac_ct_CC@
  184. +am__include = @am__include@
  185. +am__leading_dot = @am__leading_dot@
  186. +am__quote = @am__quote@
  187. +am__tar = @am__tar@
  188. +am__untar = @am__untar@
  189. +bindir = @bindir@
  190. +build = @build@
  191. +build_alias = @build_alias@
  192. +build_cpu = @build_cpu@
  193. +build_noncanonical = @build_noncanonical@
  194. +build_os = @build_os@
  195. +build_vendor = @build_vendor@
  196. +builddir = @builddir@
  197. +datadir = @datadir@
  198. +datarootdir = @datarootdir@
  199. +docdir = @docdir@
  200. +dvidir = @dvidir@
  201. +exec_prefix = @exec_prefix@
  202. +host = @host@
  203. +host_alias = @host_alias@
  204. +host_cpu = @host_cpu@
  205. +host_noncanonical = @host_noncanonical@
  206. +host_os = @host_os@
  207. +host_vendor = @host_vendor@
  208. +htmldir = @htmldir@
  209. +includedir = @includedir@
  210. +infodir = @infodir@
  211. +install_sh = @install_sh@
  212. +libdir = @libdir@
  213. +libexecdir = @libexecdir@
  214. +localedir = @localedir@
  215. +localstatedir = @localstatedir@
  216. +mandir = @mandir@
  217. +mkdir_p = @mkdir_p@
  218. +oldincludedir = @oldincludedir@
  219. +pdfdir = @pdfdir@
  220. +prefix = @prefix@
  221. +program_transform_name = @program_transform_name@
  222. +psdir = @psdir@
  223. +sbindir = @sbindir@
  224. +sharedstatedir = @sharedstatedir@
  225. +srcdir = @srcdir@
  226. +sysconfdir = @sysconfdir@
  227. +target = @target@
  228. +target_alias = @target_alias@
  229. +target_cpu = @target_cpu@
  230. +target_noncanonical = @target_noncanonical@
  231. +target_os = @target_os@
  232. +target_vendor = @target_vendor@
  233. +top_build_prefix = @top_build_prefix@
  234. +top_builddir = @top_builddir@
  235. +top_srcdir = @top_srcdir@
  236. +ACLOCAL_AMFLAGS = -I ./config -I ../config
  237. +gcc_version := $(shell $(GCC_FOR_TARGET) -dumpversion)
  238. +libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
  239. +mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
  240. +PWD_COMMAND = $${PWDCMD-pwd}
  241. +STAMP = echo timestamp >
  242. +libgodir = ../$(target_noncanonical)/libgo
  243. +LIBGODEP = $(libgodir)/libgo.la
  244. +@NATIVE_FALSE@GOCOMPILER = $(GOC)
  245. +
  246. +# Use the compiler we just built.
  247. +@NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET)
  248. +GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
  249. +AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs
  250. +GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o $@
  251. +cmdsrcdir = $(srcdir)/../libgo/go/cmd
  252. +go_cmd_go_files = \
  253. + $(cmdsrcdir)/go/build.go \
  254. + $(cmdsrcdir)/go/clean.go \
  255. + $(cmdsrcdir)/go/context.go \
  256. + $(cmdsrcdir)/go/discovery.go \
  257. + $(cmdsrcdir)/go/env.go \
  258. + $(cmdsrcdir)/go/fix.go \
  259. + $(cmdsrcdir)/go/fmt.go \
  260. + $(cmdsrcdir)/go/generate.go \
  261. + $(cmdsrcdir)/go/get.go \
  262. + $(cmdsrcdir)/go/go11.go \
  263. + $(cmdsrcdir)/go/help.go \
  264. + $(cmdsrcdir)/go/http.go \
  265. + $(cmdsrcdir)/go/list.go \
  266. + $(cmdsrcdir)/go/main.go \
  267. + $(cmdsrcdir)/go/pkg.go \
  268. + $(cmdsrcdir)/go/run.go \
  269. + $(cmdsrcdir)/go/signal.go \
  270. + $(cmdsrcdir)/go/signal_unix.go \
  271. + $(cmdsrcdir)/go/test.go \
  272. + $(cmdsrcdir)/go/testflag.go \
  273. + $(cmdsrcdir)/go/tool.go \
  274. + $(cmdsrcdir)/go/vcs.go \
  275. + $(cmdsrcdir)/go/version.go \
  276. + $(cmdsrcdir)/go/vet.go \
  277. + $(libgodir)/zstdpkglist.go
  278. +
  279. +go_cmd_gofmt_files = \
  280. + $(cmdsrcdir)/gofmt/doc.go \
  281. + $(cmdsrcdir)/gofmt/gofmt.go \
  282. + $(cmdsrcdir)/gofmt/rewrite.go \
  283. + $(cmdsrcdir)/gofmt/simplify.go
  284. +
  285. +go_cmd_cgo_files = \
  286. + $(cmdsrcdir)/cgo/ast.go \
  287. + $(cmdsrcdir)/cgo/doc.go \
  288. + $(cmdsrcdir)/cgo/gcc.go \
  289. + $(cmdsrcdir)/cgo/godefs.go \
  290. + $(cmdsrcdir)/cgo/main.go \
  291. + $(cmdsrcdir)/cgo/out.go \
  292. + $(cmdsrcdir)/cgo/util.go
  293. +
  294. +GCCGO_INSTALL_NAME := $(shell echo gccgo|sed '$(program_transform_name)')
  295. +GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
  296. +GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
  297. +MOSTLYCLEANFILES = zdefaultcc.go s-zdefaultcc
  298. +
  299. +# For a native build we build the programs using the newly built libgo
  300. +# and install them as regular programs.
  301. +@NATIVE_TRUE@bin_PROGRAMS = go$(EXEEXT) gofmt$(EXEEXT)
  302. +@NATIVE_TRUE@noinst_PROGRAMS = cgo$(EXEEXT)
  303. +@NATIVE_TRUE@man_MANS = go.1 gofmt.1
  304. +all: all-am
  305. +
  306. +.SUFFIXES:
  307. +.SUFFIXES: .c .o .obj
  308. +am--refresh:
  309. + @:
  310. +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
  311. + @for dep in $?; do \
  312. + case '$(am__configure_deps)' in \
  313. + *$$dep*) \
  314. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  315. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  316. + && exit 0; \
  317. + exit 1;; \
  318. + esac; \
  319. + done; \
  320. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  321. + $(am__cd) $(top_srcdir) && \
  322. + $(AUTOMAKE) --foreign Makefile
  323. +.PRECIOUS: Makefile
  324. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  325. + @case '$?' in \
  326. + *config.status*) \
  327. + echo ' $(SHELL) ./config.status'; \
  328. + $(SHELL) ./config.status;; \
  329. + *) \
  330. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
  331. + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
  332. + esac;
  333. +
  334. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  335. + $(SHELL) ./config.status --recheck
  336. +
  337. +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  338. + $(am__cd) $(srcdir) && $(AUTOCONF)
  339. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  340. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  341. +$(am__aclocal_m4_deps):
  342. +install-binPROGRAMS: $(bin_PROGRAMS)
  343. + @$(NORMAL_INSTALL)
  344. + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  345. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  346. + for p in $$list; do echo "$$p $$p"; done | \
  347. + sed 's/$(EXEEXT)$$//' | \
  348. + while read p p1; do if test -f $$p; \
  349. + then echo "$$p"; echo "$$p"; else :; fi; \
  350. + done | \
  351. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  352. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  353. + sed 'N;N;N;s,\n, ,g' | \
  354. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  355. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  356. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  357. + else { print "f", $$3 "/" $$4, $$1; } } \
  358. + END { for (d in files) print "f", d, files[d] }' | \
  359. + while read type dir files; do \
  360. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  361. + test -z "$$files" || { \
  362. + echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  363. + $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  364. + } \
  365. + ; done
  366. +
  367. +uninstall-binPROGRAMS:
  368. + @$(NORMAL_UNINSTALL)
  369. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  370. + files=`for p in $$list; do echo "$$p"; done | \
  371. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  372. + -e 's/$$/$(EXEEXT)/' `; \
  373. + test -n "$$list" || exit 0; \
  374. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  375. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  376. +
  377. +clean-binPROGRAMS:
  378. + -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
  379. +
  380. +clean-noinstPROGRAMS:
  381. + -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
  382. +@NATIVE_FALSE@cgo$(EXEEXT): $(cgo_OBJECTS) $(cgo_DEPENDENCIES)
  383. +@NATIVE_FALSE@ @rm -f cgo$(EXEEXT)
  384. +@NATIVE_FALSE@ $(LINK) $(cgo_OBJECTS) $(cgo_LDADD) $(LIBS)
  385. +@NATIVE_FALSE@go$(EXEEXT): $(go_OBJECTS) $(go_DEPENDENCIES)
  386. +@NATIVE_FALSE@ @rm -f go$(EXEEXT)
  387. +@NATIVE_FALSE@ $(LINK) $(go_OBJECTS) $(go_LDADD) $(LIBS)
  388. +@NATIVE_FALSE@gofmt$(EXEEXT): $(gofmt_OBJECTS) $(gofmt_DEPENDENCIES)
  389. +@NATIVE_FALSE@ @rm -f gofmt$(EXEEXT)
  390. +@NATIVE_FALSE@ $(LINK) $(gofmt_OBJECTS) $(gofmt_LDADD) $(LIBS)
  391. +
  392. +mostlyclean-compile:
  393. + -rm -f *.$(OBJEXT)
  394. +
  395. +distclean-compile:
  396. + -rm -f *.tab.c
  397. +
  398. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cgo.Po@am__quote@
  399. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/go.Po@am__quote@
  400. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gofmt.Po@am__quote@
  401. +
  402. +.c.o:
  403. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  404. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  405. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  406. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  407. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  408. +
  409. +.c.obj:
  410. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  411. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  412. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  413. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  414. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  415. +install-man1: $(man_MANS)
  416. + @$(NORMAL_INSTALL)
  417. + test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
  418. + @list=''; test -n "$(man1dir)" || exit 0; \
  419. + { for i in $$list; do echo "$$i"; done; \
  420. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  421. + sed -n '/\.1[a-z]*$$/p'; \
  422. + } | while read p; do \
  423. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  424. + echo "$$d$$p"; echo "$$p"; \
  425. + done | \
  426. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
  427. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  428. + sed 'N;N;s,\n, ,g' | { \
  429. + list=; while read file base inst; do \
  430. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  431. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
  432. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
  433. + fi; \
  434. + done; \
  435. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  436. + while read files; do \
  437. + test -z "$$files" || { \
  438. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
  439. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
  440. + done; }
  441. +
  442. +uninstall-man1:
  443. + @$(NORMAL_UNINSTALL)
  444. + @list=''; test -n "$(man1dir)" || exit 0; \
  445. + files=`{ for i in $$list; do echo "$$i"; done; \
  446. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  447. + sed -n '/\.1[a-z]*$$/p'; \
  448. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
  449. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  450. + test -z "$$files" || { \
  451. + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
  452. + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
  453. +
  454. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  455. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  456. + unique=`for i in $$list; do \
  457. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  458. + done | \
  459. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  460. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  461. + mkid -fID $$unique
  462. +tags: TAGS
  463. +
  464. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  465. + $(TAGS_FILES) $(LISP)
  466. + set x; \
  467. + here=`pwd`; \
  468. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  469. + unique=`for i in $$list; do \
  470. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  471. + done | \
  472. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  473. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  474. + shift; \
  475. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  476. + test -n "$$unique" || unique=$$empty_fix; \
  477. + if test $$# -gt 0; then \
  478. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  479. + "$$@" $$unique; \
  480. + else \
  481. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  482. + $$unique; \
  483. + fi; \
  484. + fi
  485. +ctags: CTAGS
  486. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  487. + $(TAGS_FILES) $(LISP)
  488. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  489. + unique=`for i in $$list; do \
  490. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  491. + done | \
  492. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  493. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  494. + test -z "$(CTAGS_ARGS)$$unique" \
  495. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  496. + $$unique
  497. +
  498. +GTAGS:
  499. + here=`$(am__cd) $(top_builddir) && pwd` \
  500. + && $(am__cd) $(top_srcdir) \
  501. + && gtags -i $(GTAGS_ARGS) "$$here"
  502. +
  503. +distclean-tags:
  504. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  505. +check-am: all-am
  506. +check: check-am
  507. +all-am: Makefile $(PROGRAMS) $(MANS)
  508. +installdirs:
  509. + for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
  510. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  511. + done
  512. +install: install-am
  513. +install-exec: install-exec-am
  514. +install-data: install-data-am
  515. +uninstall: uninstall-am
  516. +
  517. +install-am: all-am
  518. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  519. +
  520. +installcheck: installcheck-am
  521. +install-strip:
  522. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  523. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  524. + `test -z '$(STRIP)' || \
  525. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  526. +mostlyclean-generic:
  527. + -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
  528. +
  529. +clean-generic:
  530. +
  531. +distclean-generic:
  532. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  533. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  534. +
  535. +maintainer-clean-generic:
  536. + @echo "This command is intended for maintainers to use"
  537. + @echo "it deletes files that may require special tools to rebuild."
  538. +@NATIVE_FALSE@uninstall-local:
  539. +@NATIVE_FALSE@install-exec-local:
  540. +clean: clean-am
  541. +
  542. +clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \
  543. + mostlyclean-am
  544. +
  545. +distclean: distclean-am
  546. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  547. + -rm -rf ./$(DEPDIR)
  548. + -rm -f Makefile
  549. +distclean-am: clean-am distclean-compile distclean-generic \
  550. + distclean-tags
  551. +
  552. +dvi: dvi-am
  553. +
  554. +dvi-am:
  555. +
  556. +html: html-am
  557. +
  558. +html-am:
  559. +
  560. +info: info-am
  561. +
  562. +info-am:
  563. +
  564. +install-data-am: install-man
  565. +
  566. +install-dvi: install-dvi-am
  567. +
  568. +install-dvi-am:
  569. +
  570. +install-exec-am: install-binPROGRAMS install-exec-local
  571. +
  572. +install-html: install-html-am
  573. +
  574. +install-html-am:
  575. +
  576. +install-info: install-info-am
  577. +
  578. +install-info-am:
  579. +
  580. +install-man: install-man1
  581. +
  582. +install-pdf: install-pdf-am
  583. +
  584. +install-pdf-am:
  585. +
  586. +install-ps: install-ps-am
  587. +
  588. +install-ps-am:
  589. +
  590. +installcheck-am:
  591. +
  592. +maintainer-clean: maintainer-clean-am
  593. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  594. + -rm -rf $(top_srcdir)/autom4te.cache
  595. + -rm -rf ./$(DEPDIR)
  596. + -rm -f Makefile
  597. +maintainer-clean-am: distclean-am maintainer-clean-generic
  598. +
  599. +mostlyclean: mostlyclean-am
  600. +
  601. +mostlyclean-am: mostlyclean-compile mostlyclean-generic
  602. +
  603. +pdf: pdf-am
  604. +
  605. +pdf-am:
  606. +
  607. +ps: ps-am
  608. +
  609. +ps-am:
  610. +
  611. +uninstall-am: uninstall-binPROGRAMS uninstall-local uninstall-man
  612. +
  613. +uninstall-man: uninstall-man1
  614. +
  615. +.MAKE: install-am install-strip
  616. +
  617. +.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
  618. + clean-binPROGRAMS clean-generic clean-noinstPROGRAMS ctags \
  619. + distclean distclean-compile distclean-generic distclean-tags \
  620. + dvi dvi-am html html-am info info-am install install-am \
  621. + install-binPROGRAMS install-data install-data-am install-dvi \
  622. + install-dvi-am install-exec install-exec-am install-exec-local \
  623. + install-html install-html-am install-info install-info-am \
  624. + install-man install-man1 install-pdf install-pdf-am install-ps \
  625. + install-ps-am install-strip installcheck installcheck-am \
  626. + installdirs maintainer-clean maintainer-clean-generic \
  627. + mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
  628. + ps ps-am tags uninstall uninstall-am uninstall-binPROGRAMS \
  629. + uninstall-local uninstall-man uninstall-man1
  630. +
  631. +
  632. +zdefaultcc.go: s-zdefaultcc; @true
  633. +s-zdefaultcc: Makefile
  634. + echo 'package main' > zdefaultcc.go.tmp
  635. + echo 'const defaultGCCGO = "$(bindir)/$(GCCGO_INSTALL_NAME)"' >> zdefaultcc.go.tmp
  636. + echo 'const defaultCC = "$(bindir)/$(GCC_INSTALL_NAME)"' >> zdefaultcc.go.tmp
  637. + echo 'const defaultCXX = "$(bindir)/$(GXX_INSTALL_NAME)"' >> zdefaultcc.go.tmp
  638. + $(SHELL) $(srcdir)/../move-if-change zdefaultcc.go.tmp zdefaultcc.go
  639. + $(STAMP) $@
  640. +
  641. +@NATIVE_TRUE@go$(EXEEXT): $(go_cmd_go_files) zdefaultcc.go $(LIBGODEP)
  642. +@NATIVE_TRUE@ $(GOLINK) $(go_cmd_go_files) zdefaultcc.go $(LIBS) $(NET_LIBS)
  643. +@NATIVE_TRUE@gofmt$(EXEEXT): $(go_cmd_gofmt_files) $(LIBGODEP)
  644. +@NATIVE_TRUE@ $(GOLINK) $(go_cmd_gofmt_files) $(LIBS) $(NET_LIBS)
  645. +@NATIVE_TRUE@cgo$(EXEEXT): $(go_cmd_cgo_files) zdefaultcc.go $(LIBGODEP)
  646. +@NATIVE_TRUE@ $(GOLINK) $(go_cmd_cgo_files) zdefaultcc.go $(LIBS) $(NET_LIBS)
  647. +
  648. +@NATIVE_TRUE@install-exec-local: cgo$(EXEEXT)
  649. +@NATIVE_TRUE@ $(MKDIR_P) $(DESTDIR)$(libexecsubdir)
  650. +@NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/cgo$(exeext)
  651. +@NATIVE_TRUE@ $(INSTALL_PROGRAM) cgo$(exeext) $(DESTDIR)$(libexecsubdir)/cgo$(exeext)
  652. +
  653. +@NATIVE_TRUE@uninstall-local:
  654. +@NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/cgo$(exeext)
  655. +
  656. +# For a non-native build we have to build the programs using a
  657. +# previously built host (or build -> host) Go compiler. We should
  658. +# only do this if such a compiler is available. We also need to get
  659. +# the right values for GOARCH and GOOS in the default build context in
  660. +# the go/build package. Figure this out later.
  661. +
  662. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  663. +# Otherwise a system limit (for SysV at least) may be exceeded.
  664. +.NOEXPORT: