Blame SOURCES/papi-nostatic.patch

95553c
commit cc34c978778adb40df1a200059a31c8d628b10ee
95553c
Author: William Cohen <wcohen@redhat.com>
95553c
Date:   Thu Jan 21 14:48:01 2021 -0500
95553c
95553c
    Only check for libpfm.a if static libraries are being used.
95553c
    
95553c
    Even when static libraries are not be used papi was checking for
95553c
    libpfm.a, this would cause a failure if libpfm.a wasn't installed.
95553c
    Exclude checking for libpfm.a if no static libpfm library is needed.
95553c
95553c
diff --git a/src/Rules.pfm4_pe b/src/Rules.pfm4_pe
95553c
index 61eedc8a3..65a9635c6 100644
95553c
--- a/src/Rules.pfm4_pe
95553c
+++ b/src/Rules.pfm4_pe
95553c
@@ -32,6 +32,7 @@ ifeq (yes,$(MIC))
95553c
 	FORCE_PFM_ARCH="CONFIG_PFMLIB_ARCH_X86=y"
95553c
 endif
95553c
 
95553c
+ifneq (,$(STATIC))
95553c
 ifeq (,$(PFM_OBJS))
95553c
 $(PFM_LIB_PATH)/libpfm.a:
95553c
 ifneq (,${PFM_ROOT})
95553c
@@ -49,6 +50,7 @@ else
95553c
 endif
95553c
 	$(MAKE)
95553c
 endif
95553c
+endif
95553c
 
95553c
 include Makefile.inc
95553c