Skip to content

Instantly share code, notes, and snippets.

@aw
Created January 5, 2016 10:01
Show Gist options
  • Save aw/714d1840bbabb782ecb2 to your computer and use it in GitHub Desktop.
Save aw/714d1840bbabb782ecb2 to your computer and use it in GitHub Desktop.
Compile 32-bit picolisp on ARM (RPi)
--- Makefile 2015-09-06 03:34:04.000000000 +0000
+++ Makefile.old 2015-09-06 03:34:33.000000000 +0000
@@ -19,10 +19,10 @@ CFLAGS = -c -O2 -pipe \
ifeq ($(shell uname), Linux)
OS = Linux
- CFLAGS += -m32
- PICOLISP-FLAGS = -m32 -rdynamic
+ #CFLAGS += -m32
+ PICOLISP-FLAGS = -rdynamic
LIB-FLAGS = -lm -ldl
- DYNAMIC-LIB-FLAGS = -m32 -shared -export-dynamic
+ DYNAMIC-LIB-FLAGS = -shared -export-dynamic
LCRYPT = -lcrypt
STRIP = strip
else
@aw
Copy link
Author

aw commented Jan 5, 2016

To apply the patch, save the file to the picoLisp/src/ directory, then:

patch < Makefile.patch
make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment