Skip to content

Commit bd6622a

Browse files
committed
unix: Cache libaxtls.a in local build dir.
Allows to build the library variant for other ports in parallel.
1 parent 6aa7c80 commit bd6622a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

unix/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,14 @@ libffi:
308308
../configure $(CROSS_COMPILE_HOST) --prefix=$$PWD/out --disable-structs CC="$(CC)" CXX="$(CXX)" LD="$(LD)" CFLAGS="-Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions"; \
309309
make install-exec-recursive; make -C include install-data-am
310310

311-
axtls: ../lib/axtls/README
311+
axtls: $(BUILD)/libaxtls.a
312+
313+
$(BUILD)/libaxtls.a: ../lib/axtls/README | $(OBJ_DIRS)
312314
cd ../lib/axtls; cp config/upyconfig config/.config
313315
cd ../lib/axtls; make oldconfig -B
314316
cd ../lib/axtls; make clean
315317
cd ../lib/axtls; make all CC="$(CC)" LD="$(LD)"
318+
cp ../lib/axtls/_stage/libaxtls.a $@
316319

317320
../lib/axtls/README:
318321
@echo "You cloned without --recursive, fetching submodules for you."

0 commit comments

Comments
 (0)