aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/gcc-go.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/gcc/gcc-go.patch')
-rw-r--r--main/gcc/gcc-go.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/gcc/gcc-go.patch b/main/gcc/gcc-go.patch
new file mode 100644
index 000000000..a882a5a38
--- /dev/null
+++ b/main/gcc/gcc-go.patch
@@ -0,0 +1,11 @@
+--- gcc-4.6.1.orig/gcc/go/Make-lang.in
++++ gcc-4.6.1/gcc/go/Make-lang.in
+@@ -63,7 +63,7 @@
+ go/unsafe.o
+
+ go1$(exeext): $(GO_OBJS) attribs.o $(BACKEND) $(LIBDEPS)
+- $(CXX) $(ALL_CXXFLAGS) $(LDFLAGS) -o $@ \
++ $(CXX) $(ALL_CXXFLAGS) $(LDFLAGS) -fno-PIE -o $@ \
+ $(GO_OBJS) attribs.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
+
+ # Documentation.