diff --git a/repos/base/mk/abi.mk b/repos/base/mk/abi.mk index 0bcdeeb6b2..688ece9544 100644 --- a/repos/base/mk/abi.mk +++ b/repos/base/mk/abi.mk @@ -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) diff --git a/repos/base/mk/so.mk b/repos/base/mk/so.mk index 3cab900abd..76270a4ab5 100644 --- a/repos/base/mk/so.mk +++ b/repos/base/mk/so.mk @@ -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 $@