mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-01-12 01:00:15 +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"
|
||||
|
||||
# We need -no-pie in case the default is to generate pie code.
|
||||
#
|
||||
do_compile_append_class-target() {
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -static \
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -no-pie -static \
|
||||
sys-utils/switch_root.o \
|
||||
-o switch_root.static
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user