mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
25 lines
1013 B
Plaintext
25 lines
1013 B
Plaintext
From e9e78f55996c23624ebd792eed57dd60a571daaa Mon Sep 17 00:00:00 2001
|
|
From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
|
|
Date: Tue, 22 Jul 2014 01:32:29 +0000
|
|
Subject: Specify -save-temps for libgcc during dependency phase
|
|
|
|
This works around an internal compiler error when building
|
|
gcc for x86_64 with thread local storage enabled.
|
|
|
|
diff --git a/libcpp/Makefile.in b/libcpp/Makefile.in
|
|
index 2353c9c..93eada2 100644
|
|
--- a/libcpp/Makefile.in
|
|
+++ b/libcpp/Makefile.in
|
|
@@ -207,7 +207,7 @@ ifeq ($(DEPMODE),depmode=gcc3)
|
|
# Note that we put the dependencies into a .Tpo file, then move them
|
|
# into place if the compile succeeds. We need this because gcc does
|
|
# not atomically write the dependency output file.
|
|
-COMPILE = $(COMPILE.base) -o $@ -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Tpo
|
|
+COMPILE = $(COMPILE.base) -o $@ -save-temps -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Tpo
|
|
POSTCOMPILE = @mv $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
|
else
|
|
COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \
|
|
--
|
|
1.8.3.4
|
|
|