Hi!
On 09.03.21 16:26, Alexander Burger wrote:
>> I have successfully compiled and run tests for pil21 on openbsd 6.8
>> Documentation and full system portability is a question of future research.
>>
>> [...]
>> : (call 'uname '-a)
>> OpenBSD openbsd.localdomain 6.8 GENERIC.MP#5 amd64
>> [...]
> Cool, good news! Thanks a lot!
>
That's really good news! I tried it myself, but here the readline
version in base is too old, so I need a small patch to the Makefile in
order to use the readline from ports (called "ereadline"). Also no -ldl.
Is there a simpler way?
Cheers,
Frithjof
--- a/src/Makefile
+++ b/src/Makefile
@@ -5,7 +5,7 @@
CC = clang
PIL = ../pil # pil
ASM = opt -O3 # llvm-as
-MAIN = -rdynamic -lc -lm -ldl -lreadline -lffi
+MAIN = -L/usr/local/lib/ -rdynamic -lc -lm -lereadline -lffi
SHARED = -shared
OS = $(shell uname)
CPU = $(shell uname -m)
@@ -39,7 +39,7 @@ base.ll: $(INC) $(SRC)
mv base.map $(LIB)/map
lib.bc: pico.h lib.c
- $(CC) -O3 -w -c -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' `pkg-config
--cflags libffi` -emit-llvm lib.c
+ $(CC) -O3 -w -c -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' `pkg-config
--cflags libffi` -I/usr/local/include/ereadline -emit-llvm lib.c
# Extension libraries
$(LIB)/ext.so: ext.bc
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe