2
0
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:
Cyrill Gorcunov 2013-05-30 17:11:50 +04:00 committed by Pavel Emelyanov
parent d73c4c1ff4
commit 4f86ef968d
2 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -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