diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2019-03-21 11:04:24 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-04-18 12:09:33 +0000 |
commit | 47c826ed41193ad5d013e97bd6e396cad597cb3c (patch) | |
tree | fbccd345c5f86e8afc88f9aca20290558ffcc9dc /bootstrap | |
parent | 077f8eaf40fd7917ebc90b8577c2766c0000abe6 (diff) | |
download | samba-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.py | 3 |
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 && \ |