Viktor Malik
f56bcfadf7
samples/bpf: Fix passing LDFLAGS to libbpf
samples/bpf/Makefile passes LDFLAGS=$(TPROGS_LDFLAGS) to libbpf build
without surrounding quotes, which may cause compilation errors when
passing custom TPROGS_USER_LDFLAGS.
For example:
$ make -C samples/bpf/ TPROGS_USER_LDFLAGS="-Wl,--as-needed -specs=/usr/lib/gcc/x86_64-redhat-linux/13/libsanitizer.spec"
make: Entering directory './samples/bpf'
make -C ../../ M=./samples/bpf BPF_SAMPLES_PATH=./samples/bpf
make[1]: Entering directory '.'
make -C ./samples/bpf/../../tools/lib/bpf RM='rm -rf' EXTRA_CFLAGS="-Wall -O2 -Wmissing-prototypes -Wstrict-prototypes -I./usr/include -I./tools/testing/selftests/bpf/ -I./samples/bpf/libbpf/include -I./tools/include -I./tools/perf -I./tools/lib -DHAVE_ATTR_TEST=0" \
LDFLAGS=-Wl,--as-needed -specs=/usr/lib/gcc/x86_64-redhat-linux/13/libsanitizer.spec srctree=./samples/bpf/../../ \
O= OUTPUT=./samples/bpf/libbpf/ DESTDIR=./samples/bpf/libbpf prefix= \
./samples/bpf/libbpf/libbpf.a install_headers
make: invalid option -- 'c'
make: invalid option -- '='
make: invalid option -- '/'
make: invalid option -- 'u'
make: invalid option -- '/'
[...]
Fix the error by properly quoting $(TPROGS_LDFLAGS).
Suggested-by: Donald Zickus <dzickus@redhat.com>
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/c690de6671cc6c983d32a566d33fd7eabd18b526.1698213811.git.vmalik@redhat.com
2023-10-26 15:32:13 +02:00
..
2023-04-20 14:20:51 +02:00
2021-05-02 00:43:35 +09:00
2021-05-02 00:43:35 +09:00
2023-10-26 15:32:13 +02:00
2021-05-07 00:26:34 -07:00
2021-05-02 00:43:35 +09:00
2021-11-26 11:34:07 -07:00
2021-11-07 11:19:24 -08:00
2023-06-06 21:39:55 +09:00
2023-08-21 22:03:58 -04:00
2023-06-29 15:46:17 +02:00
2021-05-02 00:43:35 +09:00
2023-07-26 11:17:19 -07:00
2021-07-27 17:05:06 +01:00
2021-10-13 14:36:48 +02:00
2023-06-09 16:25:40 -07:00
2023-02-08 13:34:41 +01:00
2023-02-25 22:12:17 +08:00
2022-11-07 20:49:50 +01:00
2022-03-23 13:51:11 +01:00
2021-08-01 09:54:22 +02:00
2021-09-14 11:11:20 +02:00
2023-06-15 13:41:53 +02:00
2021-05-02 00:43:35 +09:00
2023-07-03 09:15:26 +01:00
2022-08-29 17:33:01 -05:00
2019-08-26 22:10:39 -07:00
2023-04-10 05:05:43 +02:00
2022-02-10 19:09:12 -08:00
2021-05-02 00:43:35 +09:00
2022-12-14 11:17:55 -05:00
2019-12-21 16:08:22 -05:00
2020-08-10 01:32:59 +09:00
2023-03-29 06:52:09 -04:00
2022-06-10 14:51:36 +02:00
2023-08-30 20:36:01 -07:00
2021-05-02 00:43:35 +09:00
2021-05-02 00:43:35 +09:00
2021-05-02 00:43:35 +09:00
2023-08-04 15:54:39 +02:00
2023-06-15 13:41:53 +02:00