make embedded racket BC build match CS

This commit is contained in:
xenia 2021-01-10 03:42:24 -05:00
parent d06bb0bc7e
commit 5c542dcf2c
1 changed files with 5 additions and 8 deletions

View File

@ -73,17 +73,14 @@ vnd-deps: $(VND_MONOCYPHER)
VND_RACKET_BC=$(RACKET_DIR)/lib/libracket3m.a
VND_RACKET_BC_CFLAGS=-I$(RACKET_DIR)/src/include
VND_RACKET_BC_LDFLAGS=-L$(RACKET_DIR)/lib -lracket3m -lrktio -lffi
VND_RACKET_BC_LDFLAGS=-L$(RACKET_DIR)/lib -lracket3m -lrktio
# musl also needs -lucontext
$(VND_RACKET_BC): $(RACKET_DIR)/.extracted
cd $(RACKET_DIR)/src && ./configure --enable-bconly --prefix=/usr --sysconfdir=/etc \
--disable-libffi --disable-docs
cd $(RACKET_DIR)/src && ./configure --enable-bconly --disable-libffi
cd $(RACKET_DIR)/src && $(MAKE)
[ -d $(RACKET_DIR)/lib ] || mkdir $(RACKET_DIR)/lib
cp $(RACKET_DIR)/src/bc/rktio/librktio.a $(RACKET_DIR)/lib
cp $(RACKET_DIR)/src/bc/libracket3m.a $(RACKET_DIR)/lib
cp $(RACKET_DIR)/src/bc/foreign/libffi/.libs/libffi.a $(RACKET_DIR)/lib
cd $(RACKET_DIR)/src && $(MAKE) install
cd $(RACKET_DIR) && bin/raco pkg install -i --auto cext-lib
### racket CS
@ -92,7 +89,7 @@ VND_RACKET_CS_CFLAGS=-I$(RACKET_DIR)/include
VND_RACKET_CS_LDFLAGS=-L$(RACKET_DIR)/lib -lracketcs
$(VND_RACKET_CS): $(RACKET_DIR)/.extracted
cd $(RACKET_DIR)/src && ./configure --enable-csonly --disable-docs
cd $(RACKET_DIR)/src && ./configure --enable-csonly
cd $(RACKET_DIR)/src && $(MAKE)
cd $(RACKET_DIR)/src && $(MAKE) install
cd $(RACKET_DIR) && bin/raco pkg install -i --auto cext-lib