Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
eedfc445
Commit
eedfc445
authored
Mar 18, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: diagnose Ubuntu's buggy copy of gold
R=iant, dsymonds CC=golang-dev
https://golang.org/cl/4300041
parent
000d60ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/make.bash
src/make.bash
+11
-0
No files found.
src/make.bash
View file @
eedfc445
...
@@ -10,6 +10,17 @@ if [ ! -f env.bash ]; then
...
@@ -10,6 +10,17 @@ if [ ! -f env.bash ]; then
fi
fi
.
./env.bash
.
./env.bash
if
ld
--version
2>&1 |
grep
'gold.*2\.20'
>
/dev/null
;
then
echo
'ERROR: Your system has gold 2.20 installed.'
echo
'This version is shipped by Ubuntu even though'
echo
'it is known not to work on Ubuntu.'
echo
'Binaries built with this linker are likely to fail in mysterious ways.'
echo
echo
'Run sudo apt-get remove binutils-gold.'
echo
exit
1
fi
# Create target directories
# Create target directories
if
[
"
$GOBIN
"
=
"
$GOROOT
/bin"
]
;
then
if
[
"
$GOBIN
"
=
"
$GOROOT
/bin"
]
;
then
mkdir
-p
"
$GOROOT
/bin"
mkdir
-p
"
$GOROOT
/bin"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment