Re: posix_spawn

"Kirill A. Korinsky" <[email protected]>
Newsgroups gmane.lisp.gcl.devel
Message-ID <[email protected]>
Hello,

> On 24. Dec 2023, at 15:17, Camm Maguire <[email protected]> wrote:
> 
> "Kirill A. Korinsky" <[email protected]> writes:
> 
>> This build was made with local root
>> 
>> It contains patches in addition to posix_spawn which allows to build it on macOS 13 arm64 under rosetta:
>> 
>> --- unixport/makefile
>> +++ unixport/makefile
>> @@ -68,7 +68,7 @@ $(LSPDIR)/auto_new.lsp: $(LSPDIR)/auto.lsp
>> echo "(AUTOLOAD 'init-readline '|readline|)" >>$@
>> 
>> libboot.so: ../o/boot.o
>> - $(CC) -shared -Wl,-undefined -Wl,dynamic_lookup $< -o $@
>> + $(CC) $(CFLAGS) -shared -Wl,-undefined -Wl,dynamic_lookup $< -o $@
>> 
>> init_raw.lsp: init_raw.lsp.in
>> 
>> @@ -84,7 +84,7 @@ boot.h: boot.ini
>> rm $*.c
>> 
>> $(DPP): ../bin/dpp.c
>> - ${CC} ${DEFS} -o $@ $<
>> + ${CC} ${CFLAGS} ${DEFS} -o $@ $<
>> 
>> new_init.c: ${INI_FILES}
>> echo '#include "make-init.h"' > $@
>> 
>> Can you consider to add it to the upstream?
>> 
> 
> This is going in for you shortly.

And I've discovered one more missed place:

diff --git a/gcl/makefile b/gcl/makefile
index 79301325a..a3c8cc12b 100644
--- a/gcl/makefile
+++ b/gcl/makefile
@@ -391,7 +391,7 @@ $(HDIR)new_decl.h:

 $(HDIR)mcompdefs.h: $(HDIR)compdefs.h $(HDIR)new_decl.h
        $(AWK) 'BEGIN {print "#include \"include.h\"";print "#include \"page.h\"";print "---"} {a=$$1;gsub("\\.\\.\\.","",a);print "\"#define " $$1 "\" " a}' $< |\
-       $(CC) -E -P -I./$(HDIR) - |\
+       $(CC) $(CFLAGS) -E -P -I./$(HDIR) - |\
        $(AWK) '/^\-\-\-$$/ {i=1;next} {if (!i) next} {gsub("\"","");print}' >$@

 $(HDIR)cmpinclude.h: $(HDIR)mcompdefs.h $(CMPINCLUDE_FILES) $(HDIR)config.h $(HDIR)cmponly_last.h

--
wbr, Kirill
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE3/KLNtcfWfLw7JxqmNjZhndZIm4FAmWIthQACgkQmNjZhndZ
Im7ObRAApPHQG0tiWVl99NHvx1S/TTIlY5EiOmY4qH61MTxufyoPWD6LxmT3lJV9
Ckd1PCI0FqxEZqYgdsgC6HKfWtSKtCRC8WAQ7JVg7eUVRnDCchimf6pbI7ycO1AG
z/6DN9kbat5gaOpwAzdT0wfPHb3WMr+u+GNwhNkI98l32S2zxkoyL6IqYW07++1G
f8NUXb9mPtEyfoWL81YfGQMTeaqXuIhG8BbslD1W1zyKXNT3p3EhXIX/M04K0c+r
3nLyaQK1Nd2X2O0HlFOEHCUVfo6GhmbCmjvtumcg2O8m5fUTiTVoTUJpuvk6zVll
9/kFQwpT5vcb+VkZU6ErO93M4MR+a0iQSLPE1iegyKF7Ia6bg9mC7unWcdQnYboo
nM7RwAfptn0nCxO3nWeWBIR5MAQH+Yc8Cp3CQOUIvQQtMp9jMZ1OnZc+XfKCX4s+
30J6Kghugn7y8Bm6iqyqn8x5rwIh2bTtYA6L3fKBwQTnqpOlHnShYZUj33/tq18R
qITyxEHvXiV4Llz0Xbn4Xf6vCSKGKRPfB+EeHGHqFHntXdM6ffCbByVqnfYv6+Lf
EcoVM6Hqtq1JA7ZtZA0A4PConpARJT+/+D2ktONOxaNzfG+bPSun7tQOjTfChx6/
QJmJgdeDI555qXOpze0IFWf4KPWXm3L/eUW4RVoWfVpNEdoa/L8=
=hnVW
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.