forked from Thomas-Tsai/partclone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HACKING
35 lines (27 loc) · 951 Bytes
/
HACKING
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
Static Analyzer:
libtoolize --force --copy
aclocal -I m4
autoconf
autoheader
automake --add-missing
scan-build -k -v -V ./configure --prefix=/usr --enable-extfs --disable-reiserfs --enable-fat \
--enable-hfsp --enable-btrfs --enable-ncursesw --enable-ntfs \
--enable-exfat --enable-f2fs --enable-minix --disable-nilfs2 --enable-xfs \
--sbindir=/usr/bin
make clean
scan-build -k -v -V make -j4
Sanitizer:
export CC=clang
export CFLAGS="$CFLAGS -Wall -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -g"
export LDFLAGS="$LDFLAGS -fsanitize=address -fsanitize=undefined"
libtoolize --force --copy
aclocal -I m4
autoconf
autoheader
automake --add-missing
./configure --prefix=/usr --enable-extfs --disable-reiserfs --enable-fat \
--enable-hfsp --enable-btrfs --enable-ncursesw --enable-ntfs \
--enable-exfat --enable-f2fs --enable-minix --disable-nilfs2 --enable-xfs \
--sbindir=/usr/bin
make clean
make -j4