summaryrefslogtreecommitdiffstats
path: root/meta-integrity/recipes-core/util-linux/util-linux-integrity.inc
blob: d3d498ebfd220d89caa6afa4f232326c1a0eba3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CFLAGS_remove += "-pie -fpie"

# We need -no-pie in case the default is to generate pie code.
#
do_compile_append_class-target() {
    ${CC} ${CFLAGS} ${LDFLAGS} -no-pie -static \
        sys-utils/switch_root.o \
        -o switch_root.static
}

do_install_append_class-target() {
    install -d "${D}${sbindir}"
    install -m 0700 "${B}/switch_root.static" \
        "${D}${sbindir}/switch_root.static"
}

PACKAGES =+ "${PN}-switch-root.static"

FILES_${PN}-switch-root.static = "${sbindir}/switch_root.static"