summaryrefslogtreecommitdiff
path: root/build_atomic_ops.sh.cygwin
blob: 848a270d49bd632a49b00c8be7c2957621371766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# We install through the temporary directory in case pwd contains spaces,
# which otherwise breaks the build machinery.
# This is a gross hack and probably breaks incremental rebuilds
mkdir libatomic_ops-install
P=`pwd`
Q=`mktemp -d`
ln -s "$P" $Q/dir
cd $Q/dir/libatomic_ops
./configure --prefix=$Q/dir/libatomic_ops-install
$MAKE CC=$CC install
cd /
rm $Q/dir
rmdir $Q