mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
networkmanager: musl now supports secure_getenv
It is no longer necessary to introduce a potential security vulnerability for fixing the musl build. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -51,17 +51,8 @@ EXTRA_OECONF = " \
|
||||
# stolen from https://github.com/void-linux/void-packages/blob/master/srcpkgs/NetworkManager/template
|
||||
# avoids:
|
||||
# | ../NetworkManager-1.16.0/libnm-core/nm-json.c:106:50: error: 'RTLD_DEEPBIND' undeclared (first use in this function); did you mean 'RTLD_DEFAULT'?
|
||||
#
|
||||
# and
|
||||
#
|
||||
# | In file included from ../NetworkManager-1.16.0/src/systemd/nm-sd-utils-core.c:25:
|
||||
# | ../NetworkManager-1.16.0/src/systemd/sd-adapt-core/nm-sd-adapt-core.h:68:6: error: #error neither secure_getenv nor __secure_getenv is available
|
||||
# | # error neither secure_getenv nor __secure_getenv is available
|
||||
# | ^~~~~
|
||||
CFLAGS_append_libc-musl = " \
|
||||
-DRTLD_DEEPBIND=0 \
|
||||
-DHAVE_SECURE_GETENV \
|
||||
-Dsecure_getenv=getenv \
|
||||
"
|
||||
|
||||
do_compile_prepend() {
|
||||
|
||||
Reference in New Issue
Block a user