mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-05-07 10:09:22 +00:00
util-linux: allow -static linking for switch_root.static
Specify -no-pie to override possible -pie default. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
CFLAGS_remove += "-pie -fpie"
|
CFLAGS_remove += "-pie -fpie"
|
||||||
|
|
||||||
|
# We need -no-pie in case the default is to generate pie code.
|
||||||
|
#
|
||||||
do_compile_append_class-target() {
|
do_compile_append_class-target() {
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} -static \
|
${CC} ${CFLAGS} ${LDFLAGS} -no-pie -static \
|
||||||
sys-utils/switch_root.o \
|
sys-utils/switch_root.o \
|
||||||
-o switch_root.static
|
-o switch_root.static
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user