Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From 995bddd9563b1aecca2369f2f9c675f88bdc0053 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 26 Aug 2017 10:29:37 -0700 |
| 4 | Subject: [PATCH] makedefs: Use native compiler to build makedefs.test |
| 5 | |
| 6 | Its a binary used during build |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | makedefs | 10 +++++----- |
| 11 | 1 file changed, 5 insertions(+), 5 deletions(-) |
| 12 | |
| 13 | diff --git a/makedefs b/makedefs |
| 14 | index 78e0717..3299eba 100644 |
| 15 | --- a/makedefs |
| 16 | +++ b/makedefs |
| 17 | @@ -551,7 +551,7 @@ int main(int argc, char **argv) |
| 18 | exit(0); |
| 19 | } |
| 20 | EOF |
| 21 | - ${CC-gcc} -o makedefs.test makedefs.test.c || exit 1 |
| 22 | + ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c || exit 1 |
| 23 | rm -f makedefs.test makedefs.test.[co] |
| 24 | fi;; |
| 25 | esac |
| 26 | @@ -787,7 +787,7 @@ int main(int argc, char **argv) |
| 27 | exit(0); |
| 28 | } |
| 29 | EOF |
| 30 | - ${CC-gcc} -o makedefs.test makedefs.test.c || exit 1 |
| 31 | + ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c || exit 1 |
| 32 | ./makedefs.test 2>/dev/null || |
| 33 | CCARGS="$CCARGS -DNO_SIGSETJMP" |
| 34 | rm -f makedefs.test makedefs.test.[co] |
| 35 | @@ -823,7 +823,7 @@ int main(int argc, char **argv) |
| 36 | &error) != 14); |
| 37 | } |
| 38 | EOF |
| 39 | - ${CC-gcc} -o makedefs.test makedefs.test.c $icu_cppflags \ |
| 40 | + ${BUILD_CC-gcc} -o makedefs.test makedefs.test.c $icu_cppflags \ |
| 41 | $icu_ldflags >/dev/null 2>&1 |
| 42 | if ./makedefs.test 2>/dev/null ; then |
| 43 | CCARGS="$CCARGS $icu_cppflags" |
| 44 | @@ -938,7 +938,7 @@ int main(void) |
| 45 | exit(ferror(stdout) ? 1 : 0); |
| 46 | } |
| 47 | EOF |
| 48 | - eval ${CC-gcc} ${CCARGS} -o makedefs.test makedefs.test.c || exit 1 |
| 49 | + eval ${BUILD_CC-gcc} ${CCARGS} -o makedefs.test makedefs.test.c || exit 1 |
| 50 | ./makedefs.test || exit 1 |
| 51 | rm -f makedefs.test makedefs.test.[co] |
| 52 | } |
| 53 | @@ -1094,7 +1094,7 @@ int main(void) |
| 54 | exit(ferror(stdout) ? 1 : 0); |
| 55 | } |
| 56 | EOF |
| 57 | - eval ${CC-gcc} ${CCARGS} -o makedefs.test makedefs.test.c || exit 1 |
| 58 | + eval ${BUILD_CC-gcc} ${CCARGS} -o makedefs.test makedefs.test.c || exit 1 |
| 59 | parm_val=`./makedefs.test` || exit 1 |
| 60 | rm -f makedefs.test makedefs.test.[co] |
| 61 | eval ${parm_name}=\""\$parm_val"\" |
| 62 | -- |
| 63 | 2.17.1 |
| 64 | |