Skip to content

Commit 91b6a53

Browse files
Leo-Yannamhyung
authored andcommitted
perf: build: Link lib 'lzma' for static build
The libunwind feature test failed with the static linkage. This is due to the 'lzma' lib is missed, so link it to dismiss building failure. Signed-off-by: Leo Yan <[email protected]> Tested-by: Ian Rogers <[email protected]> Cc: [email protected] Cc: James Clark <[email protected]> Cc: Thomas Richter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
1 parent 536661d commit 91b6a53

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tools/build/feature/Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,27 +211,27 @@ $(OUTPUT)test-numa_num_possible_cpus.bin:
211211
$(BUILD) -lnuma
212212

213213
$(OUTPUT)test-libunwind.bin:
214-
$(BUILD) -lelf
214+
$(BUILD) -lelf -llzma
215215

216216
$(OUTPUT)test-libunwind-debug-frame.bin:
217-
$(BUILD) -lelf
217+
$(BUILD) -lelf -llzma
218218
$(OUTPUT)test-libunwind-x86.bin:
219-
$(BUILD) -lelf -lunwind-x86
219+
$(BUILD) -lelf -llzma -lunwind-x86
220220

221221
$(OUTPUT)test-libunwind-x86_64.bin:
222-
$(BUILD) -lelf -lunwind-x86_64
222+
$(BUILD) -lelf -llzma -lunwind-x86_64
223223

224224
$(OUTPUT)test-libunwind-arm.bin:
225-
$(BUILD) -lelf -lunwind-arm
225+
$(BUILD) -lelf -llzma -lunwind-arm
226226

227227
$(OUTPUT)test-libunwind-aarch64.bin:
228-
$(BUILD) -lelf -lunwind-aarch64
228+
$(BUILD) -lelf -llzma -lunwind-aarch64
229229

230230
$(OUTPUT)test-libunwind-debug-frame-arm.bin:
231-
$(BUILD) -lelf -lunwind-arm
231+
$(BUILD) -lelf -llzma -lunwind-arm
232232

233233
$(OUTPUT)test-libunwind-debug-frame-aarch64.bin:
234-
$(BUILD) -lelf -lunwind-aarch64
234+
$(BUILD) -lelf -llzma -lunwind-aarch64
235235

236236
$(OUTPUT)test-libaudit.bin:
237237
$(BUILD) -laudit

0 commit comments

Comments
 (0)