summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2019-03-21 11:04:24 +1300
committerStefan Metzmacher <metze@samba.org>2019-04-18 12:09:33 +0000
commit47c826ed41193ad5d013e97bd6e396cad597cb3c (patch)
treefbccd345c5f86e8afc88f9aca20290558ffcc9dc /bootstrap
parent077f8eaf40fd7917ebc90b8577c2766c0000abe6 (diff)
downloadsamba-47c826ed41193ad5d013e97bd6e396cad597cb3c.tar.gz
bootstrap/config.py: link ld to ld.gold when available
Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bootstrap/config.py b/bootstrap/config.py
index d78ee02ec30..e4c42c7b8e7 100644
--- a/bootstrap/config.py
+++ b/bootstrap/config.py
@@ -275,6 +275,9 @@ ADD *.sh /tmp/
# need root permission, do it before USER samba
RUN /tmp/bootstrap.sh && /tmp/locale.sh
+# if ld.gold exists, force link it to ld
+RUN set -x; LD=$(which ld); LD_GOLD=$(which ld.gold); test -x $LD_GOLD && ln -sf $LD_GOLD $LD && test -x $LD && echo "$LD is now $LD_GOLD"
+
# make test can not work with root, so we have to create a new user
RUN useradd -m -s /bin/bash samba && \
mkdir -p /etc/sudoers.d && \