Lines Matching +full:build +full:- +full:in

2 1) perf build
4 The perf build process consists of several separated building blocks,
6 - libperf library (static)
7 - perf builtin commands
8 - traceevent library (static)
9 - GTK ui library
11 Several makefiles govern the perf build:
13 - Makefile
15 Makefile.perf with a -j option to do parallel builds.
17 - Makefile.perf
18 main makefile that triggers build of all perf objects including
21 - tools/build/Makefile.build
22 main makefile of the build framework
24 - tools/build/Build.include
25 build framework generic definitions
27 - Build makefiles
28 makefiles that defines build objects
30 Please refer to tools/build/Documentation/Build.txt for more
31 information about build framework.
34 2) perf build
36 The Makefile.perf triggers the build framework for build objects:
39 resulting in following objects:
40 $ ls *-in.o
41 gtk-in.o libperf-in.o perf-in.o
43 Those objects are then used in final linking:
44 libperf-gtk.so <- gtk-in.o libperf-in.o
45 perf <- perf-in.o libperf-in.o
49 focusing on build framework outcomes
51 3) Build with ASan or UBSan
61 $ make DEBUG=1 EXTRA_CFLAGS='-fno-omit-frame-pointer -fsanitize=address'
62 $ ASAN_OPTIONS=log_path=asan.log ./perf record -a
70 $ make DEBUG=1 EXTRA_CFLAGS='-fno-omit-frame-pointer -fsanitize=undefined'
71 $ UBSAN_OPTIONS=print_stacktrace=1 ./perf record -a
77 As Multiarch is commonly supported in Linux distributions, we can install
78 libraries for multiple architectures on the same system and then cross-compile
85 $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -C tools/perf
87 For static linking, the option `LDFLAGS="-static"` is required.
89 $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
90 LDFLAGS="-static" -C tools/perf
92 In the embedded system world, a use case is to explicitly specify the package
95 $ PKG_CONFIG_SYSROOT_DIR="/path/to/cross/build/sysroot" \
97 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -C tools/perf
99 In this case, the variable PKG_CONFIG_SYSROOT_DIR can be used alongside the
103 5) Build with Clang
106 variables HOSTCC, CC and CXX, it allows to build perf with Clang.
108 Using Clang for a native build:
110 $ HOSTCC=clang CC=clang CXX=clang++ make -C tools/perf
115 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
116 make -C tools/perf