-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathigprof.build
More file actions
32 lines (31 loc) · 1.25 KB
/
igprof.build
File metadata and controls
32 lines (31 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# igprof build
# We actually build libatomic_ops and libunwind in addition to igprof. Didn't see the point in putting
# those in as separate products, since they wouldn't be used by anyone (at least, not yet).
@LSST UPS@ &&
product_dir=$(eups path 0)/$(eups flavor)/@PRODUCT@/@VERSION@ &&
curl -L \
http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-7.2d.tar.gz \
> libatomic_ops-7.2d.tar.gz &&
gunzip < libatomic_ops-7.2d.tar.gz | tar -xf - &&
cd libatomic_ops-7.2 &&
./configure --prefix=$product_dir &&
make install &&
cd ../ &&
curl -L \
http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gz \
> libunwind-1.1.tar.gz &&
gunzip < libunwind-1.1.tar.gz | tar -xf - &&
cd libunwind-1.1 &&
./configure --prefix=$product_dir CPPFLAGS="-I$product_dir/include" CFLAGS="-g -O3" --disable-block-signals &&
make install &&
cd ../ &&
curl -Lk \
http://github.com/igprof/igprof/archive/@VERSION@.tar.gz \
> @PRODUCT@-@VERSION@.tar.gz &&
gunzip < @PRODUCT@-@VERSION@.tar.gz | tar -xf - &&
cd @PRODUCT@-$(echo @VERSION@ | sed 's|^v||') &&
sed -i 's|-Werror||g' CMakeLists.txt &&
cmake -DCMAKE_INSTALL_PREFIX=$product_dir -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3" . &&
make &&
make install &&
lsst_ups @PRODUCT@ @VERSION@ $product_dir