forked from ovis-hpc/ldms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.libevent2
executable file
·30 lines (26 loc) · 988 Bytes
/
README.libevent2
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
#!/bin/sh
# you can build libevent2 (if you are not on a recent fedora or ubuntu system)
# with this script or one very like it.
libname=libevent-2.0.21-stable
# replace wget here with curl if you prefer.
wget https://github.com/downloads/libevent/libevent/$libname.tar.gz
# edit the settings below to suit your tastes.
# under no circumstance should prefix be /usr on ubuntu/debian/redhat/centos
# as this will foul up the system-wide libevent.
iprefix=/opt/ovis
if tar xzf $libname.tar.gz ; then
cd $libname && \
./configure \
CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -march=native" \
--prefix=${iprefix} \
--datadir=${iprefix}/share \
--includedir=${iprefix}/include \
--libdir=${iprefix}/lib \
--libexecdir=${iprefix}/libexec \
--mandir=${iprefix}/share/man \
--infodir=${iprefix}/share/info \
--disable-dependency-tracking \
--disable-static
# chekc something here, then
sudo make install
fi