We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you have trouble compiling QuickJS on Raspberry Pi, just link the atomic lib as seem in this discussion, this following patch should work:
atomic
diff --git a/Makefile b/Makefile index efd3a32..3150f80 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,10 @@ CONFIG_LTO=y #CONFIG_WERROR=y # force 32 bit build for some utilities #CONFIG_M32=y +# compilation on ARM Linux +ifeq ($(shell uname -m),armv7l) +CONFIG_ARMV7=y +endif ifdef CONFIG_DARWIN # use clang instead of gcc @@ -167,6 +171,9 @@ LIBS=-lm ifndef CONFIG_WIN32 LIBS+=-ldl endif +ifdef CONFIG_ARMV7 +LIBS+=-latomic +endif $(OBJDIR): mkdir -p $(OBJDIR) $(OBJDIR)/examples $(OBJDIR)/tests
You can also simply change LIBS=-lm to LIBS=-lm -latomic in makefile :D
LIBS=-lm
LIBS=-lm -latomic
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you have trouble compiling QuickJS on Raspberry Pi, just link the
atomic
lib as seem in this discussion, this following patch should work:You can also simply change
LIBS=-lm
toLIBS=-lm -latomic
in makefile :DThe text was updated successfully, but these errors were encountered: