Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed May 20, 2021
1 parent 02e6c6a commit d01fbc4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ docker run -it --rm -v `pwd`/oneTBB:/oneTBB -u $(id -u):$(id -g) \
mold-build-ubuntu20 \
make -C /oneTBB -j$(nproc) extra_inc=big_iron.inc

docker run -it --rm -v `pwd`/oneTBB:/oneTBB -v `pwd`:/mold \
-u $(id -u):$(id -g) mold-build-ubuntu20 \
make EXTRA_CPPFLAGS=-I/oneTBB/include \
EXTRA_LDFLAGS="-fuse-ld=lld -static -L/$(ls -d oneTBB/build/linux_intel64_*_release)" \
-j$(nproc) -C /mold
tbb_bindir=$(ls -d oneTBB/build/linux_intel64_*_release)

docker run -it --rm -v `pwd`:/mold -u $(id -u):$(id -g) \
mold-build-ubuntu20 \
make -C /mold -j$(nproc) \
EXTRA_CPPFLAGS=-IoneTBB/include \
EXTRA_LDFLAGS="-fuse-ld=lld -static -L$tbb_bindir"

0 comments on commit d01fbc4

Please sign in to comment.