On 1/25/19 11:06 AM, Paolo Bonzini wrote: > Do not link it unconditionally into all binaries.
Nice :) > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > Signed-off-by: Yang Zhong <yang.zh...@intel.com> > Reviewed-by: Thomas Huth <th...@redhat.com> > Message-Id: <20190123065618.3520-3-yang.zh...@intel.com> > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com> Tested-by: Philippe Mathieu-Daudé <phi...@redhat.com> > --- > default-configs/i386-softmmu.mak | 1 + > hw/pci-host/Makefile.objs | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/default-configs/i386-softmmu.mak > b/default-configs/i386-softmmu.mak > index 2f919df..48da996 100644 > --- a/default-configs/i386-softmmu.mak > +++ b/default-configs/i386-softmmu.mak > @@ -67,3 +67,4 @@ CONFIG_I2C=y > CONFIG_SEV=$(CONFIG_KVM) > CONFIG_VTD=y > CONFIG_AMD_IOMMU=y > +CONFIG_PAM=y > diff --git a/hw/pci-host/Makefile.objs b/hw/pci-host/Makefile.objs > index 073d512..a9cd3e0 100644 > --- a/hw/pci-host/Makefile.objs > +++ b/hw/pci-host/Makefile.objs > @@ -1,4 +1,4 @@ > -common-obj-y += pam.o > +common-obj-$(CONFIG_PAM) += pam.o > > # PPC devices > common-obj-$(CONFIG_PREP_PCI) += prep.o >