diff options
author | Mike Pall <mike> | 2021-03-31 17:06:27 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2021-03-31 17:06:27 +0200 |
commit | 66563bdab0c7acf3cd61dc6cfcca36275951d084 (patch) | |
tree | e0adc7fb29f887c439fb0ec79a6c47a22b3cfa1e /src | |
parent | 3217240b4767d481f7dd5e7036721aec643a1f11 (diff) | |
download | luajit-66563bdab0c7acf3cd61dc6cfcca36275951d084.tar.gz luajit-66563bdab0c7acf3cd61dc6cfcca36275951d084.tar.bz2 luajit-66563bdab0c7acf3cd61dc6cfcca36275951d084.zip |
Fix build with busybox grep.
Reported by ymph.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index ca4afeab..fdf04b6e 100644 --- a/src/Makefile +++ b/src/Makefile | |||
@@ -335,7 +335,7 @@ ifeq (iOS,$(TARGET_SYS)) | |||
335 | else | 335 | else |
336 | ifeq (,$(findstring LJ_NO_UNWIND 1,$(TARGET_TESTARCH))) | 336 | ifeq (,$(findstring LJ_NO_UNWIND 1,$(TARGET_TESTARCH))) |
337 | # Find out whether the target toolchain always generates unwind tables. | 337 | # Find out whether the target toolchain always generates unwind tables. |
338 | TARGET_TESTUNWIND=$(shell exec 2>/dev/null; echo 'extern void b(void);int a(void){b();return 0;}' | $(TARGET_CC) -c -x c - -o tmpunwind.o && grep -qU -e eh_frame -e __unwind_info tmpunwind.o && echo E; rm -f tmpunwind.o) | 338 | TARGET_TESTUNWIND=$(shell exec 2>/dev/null; echo 'extern void b(void);int a(void){b();return 0;}' | $(TARGET_CC) -c -x c - -o tmpunwind.o && { grep -qa -e eh_frame -e __unwind_info tmpunwind.o || grep -qU -e eh_frame -e __unwind_info tmpunwind.o; } && echo E; rm -f tmpunwind.o) |
339 | ifneq (,$(findstring E,$(TARGET_TESTUNWIND))) | 339 | ifneq (,$(findstring E,$(TARGET_TESTUNWIND))) |
340 | TARGET_XCFLAGS+= -DLUAJIT_UNWIND_EXTERNAL | 340 | TARGET_XCFLAGS+= -DLUAJIT_UNWIND_EXTERNAL |
341 | endif | 341 | endif |