gcl-devel
[Top][All Lists]
Advanced

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

Re: posix_spawn


From: Kirill A. Korinsky
Subject: Re: posix_spawn
Date: Sun, 24 Dec 2023 23:52:04 +0100

Hello,

On 24. Dec 2023, at 15:17, Camm Maguire <camm@maguirefamily.org> wrote:

"Kirill A. Korinsky" <kirill@korins.ky> 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


Attachment: signature.asc
Description: Message signed with OpenPGP


reply via email to

[Prev in Thread] Current Thread [Next in Thread]