Blame SOURCES/multilib-pcp-devel.patch

5b4e29
commit 43cc36abff0fbaa5b5b434ca17b4b74f45dad98a
5b4e29
Author: Nathan Scott <nathans@redhat.com>
5b4e29
Date:   Thu Jan 9 16:01:18 2020 +1100
5b4e29
5b4e29
    build: ensure generated demo Makefile matches on 32/64 Linux
5b4e29
    
5b4e29
    This corrects a multilib issue with the pcp-devel RPMs.
5b4e29
    Resolves Red Hat bugzilla #1788119
5b4e29
5b4e29
diff --git a/src/pmdas/trace/GNUmakefile b/src/pmdas/trace/GNUmakefile
5b4e29
index b7087d017..b5e0589ad 100644
5b4e29
--- a/src/pmdas/trace/GNUmakefile
5b4e29
+++ b/src/pmdas/trace/GNUmakefile
5b4e29
@@ -101,7 +101,7 @@ MY_INC_DIR	= -I$(PCP_INC_DIR)/..
5b4e29
 else
5b4e29
 MY_INC_DIR	=
5b4e29
 endif
5b4e29
-ifneq "$(PCP_LIB_DIR)" "/usr/lib"
5b4e29
+ifeq "$(findstring $(PCP_LIB_DIR), /usr/lib /usr/lib64)" ""
5b4e29
 # for ld add -L<run-time-lib-dir> and include -rpath when
5b4e29
 # $(PCP_LIB_DIR) may not be on the default ld search path.
5b4e29
 #