forked from smuzaffar/cms.bits
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhwloc.sh
More file actions
46 lines (41 loc) · 1.15 KB
/
Copy pathhwloc.sh
File metadata and controls
46 lines (41 loc) · 1.15 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package: hwloc
version: "%(tag_basename)s"
tag: hwloc-2.12.0
source: https://github.com/open-mpi/hwloc
requires:
- gcc
- libpciaccess
- libxml2
- numactl
---
rsync -a --chmod=ug=rwX --delete --exclude '**/.git' "$SOURCEDIR"/ "$BUILDDIR"/
sh autogen.sh
./configure \
--prefix ${INSTALLROOT} \
--enable-shared \
--disable-static \
--disable-dependency-tracking \
--enable-cpuid \
--enable-libxml2 \
--disable-cairo \
--disable-doxygen \
--disable-opencl \
--with-pic \
--with-gnu-ld \
--without-x \
HWLOC_PCIACCESS_CFLAGS="-I$LIBPCIACCESS_ROOT/include" \
HWLOC_PCIACCESS_LIBS="-L$LIBPCIACCESS_ROOT/lib -lpciaccess" \
HWLOC_LIBXML2_CFLAGS="-I$LIBXML2_ROOT/include/libxml2" \
HWLOC_LIBXML2_LIBS="-L$LIBXML2_ROOT/lib -lxml2" \
HWLOC_NUMA_CFLAGS="-I$NUMACTL_ROOT/include" \
HWLOC_NUMA_LIBS="-L$NUMACTL_ROOT/lib -lnuma"
make ${JOBS:+-j$JOBS}
make install
# remove the libtool library files
rm -f $INSTALLROOT/lib/lib*.la
rm -f $INSTALLROOT/lib/hwloc/*.la
# remove unnecessary or unwanted files
rm -rf $INSTALLROOT/sbin
rm -rf $INSTALLROOT/share/doc
rm -rf $INSTALLROOT/share/hwloc
rm -f $INSTALLROOT/share/man/man1/hwloc-dump-hwdata.1