blob: 68b09cec4239bb16966ff90a985a443593f0c095 (
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"
|