mk: .lib.so and .abi.so depend on linker scripts

Fixes #3978
This commit is contained in:
Norman Feske 2023-12-01 09:49:31 +01:00
parent 5734ea736c
commit 4685ba394e
2 changed files with 4 additions and 0 deletions

View File

@ -93,3 +93,5 @@ $(ABI_SO): symbols.o
$(MSG_MERGE)$(ABI_SO)
$(VERBOSE)$(LD) -o $(ABI_SO) -soname=$(ABI_SONAME) -shared --eh-frame-hdr $(LD_OPT) \
-T $(LD_SCRIPT_SO) $<
$(ABI_SO): $(LD_SCRIPT_SO)

View File

@ -157,6 +157,8 @@ $(LIB_SO): $(STATIC_LIBS) $(OBJECTS) $(wildcard $(LD_SCRIPT_SO))
--end-group --no-whole-archive \
$(LIBGCC)
$(ABI_SO): $(LD_SCRIPT_SO)
$(LIB_CHECKED): $(LIB_SO) $(SYMBOLS)
$(VERBOSE)$(BASE_DIR)/../../tool/check_abi $(LIB_SO) $(SYMBOLS) && touch $@