diff options
Diffstat (limited to 'meta/recipes-extended/shadow')
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index c024746d4f..43f456251a 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -47,6 +47,16 @@ EXTRA_OECONF += "--without-libcrack \ | |||
47 | 47 | ||
48 | CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY" | 48 | CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY" |
49 | 49 | ||
50 | # Force static linking of utilities so we can use from the sysroot/sstate for useradd | ||
51 | # without worrying about the dependency libraries being available | ||
52 | LDFLAGS:append:class-native = " -no-pie" | ||
53 | do_compile:prepend:class-native () { | ||
54 | sed -i -e 's#\(LIBS.*\)-lbsd#\1 ${STAGING_LIBDIR}/libbsd.a ${STAGING_LIBDIR}/libmd.a#g' \ | ||
55 | -e 's#\(LIBBSD.*\)-lbsd#\1 ${STAGING_LIBDIR}/libbsd.a ${STAGING_LIBDIR}/libmd.a#g' \ | ||
56 | -e 's#\(LIBATTR.*\)-lattr#\1 ${STAGING_LIBDIR}/libattr.a#g' \ | ||
57 | ${B}/lib/Makefile ${B}/src/Makefile | ||
58 | } | ||
59 | |||
50 | NSCDOPT = "" | 60 | NSCDOPT = "" |
51 | NSCDOPT:class-native = "--without-nscd" | 61 | NSCDOPT:class-native = "--without-nscd" |
52 | NSCDOPT:class-nativesdk = "--without-nscd" | 62 | NSCDOPT:class-nativesdk = "--without-nscd" |