Index: libyara/yara.pc.in
--- libyara/yara.pc.in.orig	2020-06-26 09:17:35.000000000 +0200
+++ libyara/yara.pc.in	2020-09-27 09:38:03.006776000 +0200
@@ -9,5 +9,5 @@
 Version: @PACKAGE_VERSION@
 Requires.private: @PC_REQUIRES_PRIVATE@
 Cflags: -I${includedir}
-Libs: -L${libdir} -lyara
+Libs: -L${libdir} -lyara -lm
 Libs.private: @PC_LIBS_PRIVATE@ @PTHREAD_LIBS@
Index: libyara/Makefile.am
--- libyara/Makefile.am.orig	2020-06-26 09:17:35.000000000 +0200
+++ libyara/Makefile.am	2020-09-27 09:43:05.649391000 +0200
@@ -64,6 +64,7 @@
 
 AM_YFLAGS=-d
 
+AM_CPPFLAGS=-I$(srcdir)/include
 AM_CFLAGS=-Wall -Wno-deprecated-declarations \
 	-D_GNU_SOURCE \
 	-I$(srcdir)/include
