Comment 9 for bug 1629989

Revision history for this message
Graham Inggs (ginggs) wrote : Re: FFe: Sync libpfm4 4.7.0+git30-gd422ba2-1 (main) from Debian unstable (main)

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.