tools/libs: fix build of stubdoms
authorJuergen Gross <jgross@suse.com>
Wed, 8 Sep 2021 12:43:03 +0000 (14:43 +0200)
committerIan Jackson <iwj@xenproject.org>
Mon, 27 Sep 2021 14:36:18 +0000 (15:36 +0100)
In case abi-dumper is available the stubdom builds will fail due to a
false dependency on dynamic loadable libraries. Fix that.

Fixes: d7c9f7a7a3959913b4 ("tools/libs: Write out an ABI analysis when abi-dumper is available")
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/libs.mk

index 84130ccbaf05463e7466527f1f8cc7137ae4136f..ebdb2a47825a88e152ca901b7d02c099ed6f0b49 100644 (file)
@@ -98,10 +98,12 @@ lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxen$(LIBNAME).map
 
 # If abi-dumper is available, write out the ABI analysis
 ifneq ($(ABI_DUMPER),)
+ifneq ($(nosharedlibs),y)
 libs: $(PKG_ABI)
 $(PKG_ABI): lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) headers.lst
        $(ABI_DUMPER) $< -o $@ -public-headers headers.lst -lver $(MAJOR).$(MINOR)
 endif
+endif
 
 .PHONY: install
 install: build