Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37903134
en ru br
ALT Linux repos
S:6.0.0-alt7.1

Group :: Development/Tools
RPM: papi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: papi-nostatic.patch
Download


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