Fix the commands to build library

In `scripts/common.make`, used by `tests/Makefile` and `programs/Makefile`,
we have the following rules to build the library:

  ```
  $(MBEDLIBS):
      $(MAKE) -C ../library
  ```

$(MBEDLIBS) contains three library files but the command is for all
the 3 files instead of single target generation. This would cause a
race when doing parallel build. This commit fixes command so that
the recipe could generate a single library file.

Fix https://github.com/Mbed-TLS/mbedtls/issues/8229

Signed-off-by: Pengyu Lv <[email protected]>
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
Pengyu Lv
2025-12-04 17:07:05 +01:00
committed by Gilles Peskine
parent 8f66d59d83
commit 8b364c7436
+1 -1
View File
@@ -140,7 +140,7 @@ endif
default: all
$(MBEDLIBS):
$(MAKE) -C $(MBEDTLS_PATH)/library
$(MAKE) -C $(MBEDTLS_PATH)/library $(@F)
neat: clean
ifndef WINDOWS