mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +00:00
make: pie -- Use CROSS_COMPILE prefix for nm utility
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> CC: Chanho Park <chanho61.park@samsung.com> CC: Myungjoo Ham <myungjoo.ham@samsung.com> Acked-by: Chanho Park <chanho61.park@samsung.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
d73c4c1ff4
commit
4f86ef968d
@ -38,7 +38,7 @@ $(obj)/%.built-in.bin: $(obj)/%.built-in.bin.o
|
||||
|
||||
$(obj)/%-blob.h: $(obj)/%.built-in.bin $(obj)/$(GEN-OFFSETS)
|
||||
$(E) " GEN " $@
|
||||
$(Q) $(SH) $(obj)/$(GEN-OFFSETS) $(@:-blob.h=) $(notdir $(@:-blob.h=)) > $@
|
||||
$(Q) $(SH) $(obj)/$(GEN-OFFSETS) $(@:-blob.h=) $(notdir $(@:-blob.h=)) $(CROSS_COMPILE) > $@
|
||||
|
||||
$(BLOBS): $(obj)/$(PIELDS)
|
||||
_all += $(BLOBS)
|
||||
|
@ -5,6 +5,13 @@ set -u
|
||||
|
||||
FILE=$1
|
||||
NAME=$2
|
||||
|
||||
if test $# -ge 3; then
|
||||
CROSS_COMPILE=$3
|
||||
else
|
||||
CROSS_COMPILE=
|
||||
fi
|
||||
|
||||
INC_GUARD=__${NAME}_h__
|
||||
PREFIX=${NAME}_blob_offset__
|
||||
BLOB=${NAME}_blob
|
||||
@ -20,7 +27,7 @@ cat << EOF
|
||||
|
||||
EOF
|
||||
|
||||
nm $OBJNAME | grep "__export_" | tr . _ | awk "$AWK_CMD"
|
||||
${CROSS_COMPILE}nm $OBJNAME | grep "__export_" | tr . _ | awk "$AWK_CMD"
|
||||
|
||||
cat << EOF
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user