lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Here are the changes I made to build dogfood in macOS 10.11.6.
Perhaps use "wc -c < $1" instead of stat?

diff -r ../Downloads/dogfood-master/bootstrap.sh dogfood-master/bootstrap.sh
11c11
< PAYLOAD=$(printf "\r\n-- dogfood %08X\r\n" $(stat -L -c %s $1))
---
> PAYLOAD=$(printf "\r\n-- dogfood %08X\r\n" $(stat -L -f %z $1))
18c18
< printf "\r\n-- food %08X\r\n" $(stat -L -c %s $2) >> $3
---
> printf "\r\n-- food %08X\r\n" $(stat -L -f %z $2) >> $3

diff -r ../Downloads/dogfood-master/makefile dogfood-master/makefile
57c57
< $(CC)  $(CFLAGS) -shared -o $@ -fPIC $+
---
> $(CC) $(CFLAGS) -bundle -undefined dynamic_lookup -o $@ $+