mirror of
https://github.com/linux-msm/rpmsgexport.git
synced 2026-08-13 13:12:22 -07:00
The existing Makefile hardcodes both CFLAGS and LDFLAGS: CFLAGS := -Wall -g -O2 LDFLAGS := This prevents toolchain-provided flags from being applied when packaging with distribution build systems such as Yocto and dpkg-buildpackage. Specifically: - The linker flag --hash-style=gnu is not applied, causing the binary to be missing GNU_HASH. - The compiler flag -fdebug-prefix-map is not applied, causing debug symbols to embed absolute build paths. Replace the Makefile with meson, which automatically inherits CFLAGS and LDFLAGS from the environment, resolving both issues. To build: meson setup build && meson compile -C build Signed-off-by: Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com>
11 lines
184 B
Meson
11 lines
184 B
Meson
project('rpmsgexport', 'c',
|
|
version : '1.0',
|
|
license : 'BSD-3-Clause',
|
|
default_options : ['warning_level=1'],
|
|
)
|
|
|
|
executable('rpmsgexport',
|
|
'rpmsgexport.c',
|
|
install : true,
|
|
)
|