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:
Adrian Bunk
2019-08-18 18:06:44 +03:00
committed by Khem Raj
parent 509d40153d
commit db9ca7d7c3
@@ -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() {