I managed to get a bit further with the following patch:
--- a/lib/Makefile +++ b/lib/Makefile @@ -33,7 +33,7 @@ SRCS += pfmlib_perf_event_pmu.c pfmlib_perf_event.c pfmlib_perf_event_raw.c endif
-CFLAGS+=-D_REENTRANT -I. -fvisibility=hidden +CFLAGS+=-D_REENTRANT -I. -fvisibility=hidden -fPIC -DPIC
# # list all library support modules
...but then ended up with a bunch of undefined references building python/src/perfmon_int_wrap.c which seem to be SWIG-related.
I managed to get a bit further with the following patch:
--- a/lib/Makefile perf_event_ pmu.c pfmlib_perf_event.c pfmlib_ perf_event_ raw.c
+++ b/lib/Makefile
@@ -33,7 +33,7 @@
SRCS += pfmlib_
endif
-CFLAGS+ =-D_REENTRANT -I. -fvisibility=hidden =-D_REENTRANT -I. -fvisibility=hidden -fPIC -DPIC
+CFLAGS+
#
# list all library support modules
...but then ended up with a bunch of undefined references building python/ src/perfmon_ int_wrap. c which seem to be SWIG-related.