summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2016-03-17 14:12:51 -0400
committerGabriel Russell <gabriel.russell@mongodb.com>2016-03-17 14:35:57 -0400
commit6a49941f2084336c54ab9e832ece3aeeb1486b2f (patch)
tree60552e1fd4791e43c8e5c3c1fcffa73aec1615b8
parentc3b205f4d4a178ab2018ef3e968af38964d5793b (diff)
downloadmongo-6a49941f2084336c54ab9e832ece3aeeb1486b2f.tar.gz
TOOLS-1097 fix build o rhel55
-rw-r--r--common.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/common.yml b/common.yml
index 7f6639f6914..a7bfd37c6d8 100644
--- a/common.yml
+++ b/common.yml
@@ -266,6 +266,15 @@ functions:
if [ '${library_path}' != '' ]; then
export ${library_path}
fi
+
+ # In RHEL 5.5, /usr/bin/ld can't handle --build-id parameters, so
+ # use a wrapper if it's present on the system
+ #
+ if [ -d /opt/ldwrapper/bin ]
+ then
+ export PATH=/opt/ldwrapper/bin:$PATH
+ fi
+
. ./set_gopath.sh
${gorootvars} go build -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec `git rev-parse HEAD` -X github.com/mongodb/mongo-tools/common/options.VersionStr $(git describe)" ${args} ${build_tags} -o bin/${tool} ${tool}/main/${tool}.go