[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-devel] [PATCH 1/3] Use the correct 'size' command when cross-com
From: |
François Revol |
Subject: |
[Qemacs-devel] [PATCH 1/3] Use the correct 'size' command when cross-compiling |
Date: |
Wed, 19 Apr 2017 23:46:06 +0200 |
---
Makefile | 8 ++++----
configure | 3 +++
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index e7bdc1d..b8d4c85 100644
--- a/Makefile
+++ b/Makefile
@@ -229,7 +229,7 @@ qe$(EXE): qe_g$(EXE) Makefile
cp $< $@
-$(STRIP) $@
@ls -l $@
- @echo `size address@hidden `wc -c address@hidden qe $(OPTIONS) \
+ @echo `$(SIZE) address@hidden `wc -c address@hidden qe $(OPTIONS) \
| cut -d ' ' -f 7-10,13,15-40 >> STATS
#
@@ -244,7 +244,7 @@ xqe$(EXE): xqe_g$(EXE) Makefile
cp $< $@
-$(STRIP) $@
@ls -l $@
- @echo `size address@hidden `wc -c address@hidden xqe $(OPTIONS) \
+ @echo `$(SIZE) address@hidden `wc -c address@hidden xqe $(OPTIONS) \
| cut -d ' ' -f 7-10,13,15-40 >> STATS
#
@@ -259,7 +259,7 @@ tqe$(EXE): tqe_g$(EXE) Makefile
cp $< $@
-$(STRIP) $@
@ls -l $@
- @echo `size address@hidden `wc -c address@hidden tqe $(OPTIONS) \
+ @echo `$(SIZE) address@hidden `wc -c address@hidden tqe $(OPTIONS) \
| cut -d ' ' -f 7-10,13,15-40 >> STATS
t1qe_g$(EXE): tqe.c $(TSRCS) Makefile
@@ -271,7 +271,7 @@ t1qe$(EXE): t1qe_g$(EXE) Makefile
cp $< $@
-$(STRIP) $@
@ls -l $@
- @echo `size address@hidden `wc -c address@hidden t1qe $(OPTIONS) \
+ @echo `$(SIZE) address@hidden `wc -c address@hidden t1qe $(OPTIONS) \
| cut -d ' ' -f 7-10,13,15-40 >> STATS
ffplay$(EXE): qe$(EXE) Makefile
diff --git a/configure b/configure
index 5dcabb7..dd7b5f7 100755
--- a/configure
+++ b/configure
@@ -28,6 +28,7 @@ cc="gcc"
host_cc="gcc"
ar="ar"
make="make"
+size="size"
strip="strip"
strip_args="-s -R .comment -R .note"
cpu=`uname -m`
@@ -399,6 +400,7 @@ fi
cc="${cross_prefix}${cc}"
ar="${cross_prefix}${ar}"
+size="${cross_prefix}${size}"
strip="${cross_prefix}${strip}"
# ---
@@ -527,6 +529,7 @@ echo "CC=$cc" >> $TMPMAK
echo "GCC_MAJOR=$gcc_major" >> $TMPMAK
echo "HOST_CC=$host_cc" >> $TMPMAK
echo "AR=$ar" >> $TMPMAK
+echo "SIZE=$size" >> $TMPMAK
echo "STRIP=$strip $strip_args" >> $TMPMAK
echo "INSTALL=install" >> $TMPMAK
echo "CFLAGS=$CFLAGS" >> $TMPMAK
--
2.11.0