Bug 1428967 - Allow to build cctools-port on Debian. r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Sat, 30 Dec 2017 12:57:51 +0900
changeset 452642 63706bc5380ab7794fc998e5a14c7a48f8253cff
parent 452641 024c63779e3b95b9161f27a5ea80e5534e0919e4
child 452643 17660bff0c23f8fa046c368ee6c3eb50afe1a7ce
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1428967
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1428967 - Allow to build cctools-port on Debian. r=ted There is no /lib64 on Debian. OTOH, one doesn't need to give the full path to a system library in LDFLAGS, so just use -l syntax instead.
taskcluster/scripts/misc/build-cctools-port.sh
--- a/taskcluster/scripts/misc/build-cctools-port.sh
+++ b/taskcluster/scripts/misc/build-cctools-port.sh
@@ -27,17 +27,17 @@ echo "Building from commit hash `git rev
 # Fetch clang from tooltool
 cd $WORKSPACE/build/src
 . taskcluster/scripts/misc/tooltool-download.sh
 
 # Configure crosstools-port
 cd $CROSSTOOLS_CCTOOLS_DIR
 export CC=$CLANG_DIR/bin/clang
 export CXX=$CLANG_DIR/bin/clang++
-export LDFLAGS=/lib64/libpthread.so.0
+export LDFLAGS=-lpthread
 ./autogen.sh
 ./configure --prefix=$CROSSTOOLS_BUILD_DIR --target=x86_64-apple-darwin11 --with-llvm-config=$CLANG_DIR/bin/llvm-config
 
 # Build cctools
 make -j `nproc --all` install
 strip $CROSSTOOLS_BUILD_DIR/bin/*
 # cctools-port doesn't include dsymutil but clang will need to find it.
 cp $CLANG_DIR/bin/llvm-dsymutil $CROSSTOOLS_BUILD_DIR/bin/x86_64-apple-darwin11-dsymutil