summaryrefslogtreecommitdiff
path: root/media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch')
-rw-r--r--media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch b/media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch
new file mode 100644
index 00000000..7866cce1
--- /dev/null
+++ b/media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch
@@ -0,0 +1,26 @@
+diff --git a/Makefile b/Makefile
+index e06b20c..a0867f8 100644
+--- a/Makefile
++++ b/Makefile
+@@ -36,8 +36,8 @@ GTK3_LIBS?=`pkg-config --libs gtk+-3.0`
+ SQLITE_LIBS?=-lsqlite3
+
+ CC?=gcc
+-CFLAGS+=-Wall -fPIC -std=c99 -D_GNU_SOURCE
+-LDFLAGS+=-shared
++CFLAGS+=-Wall -fPIC -std=c99 -D_GNU_SOURCE -lm
++LDFLAGS+=-shared -lm
+
+ GTK2_DIR?=gtk2
+ GTK3_DIR?=gtk3
+@@ -52,8 +52,8 @@ define compile
+ endef
+
+ define link
+- echo $(CC) $(LDFLAGS) $1 $2 $3 -o $@
+- $(CC) $(LDFLAGS) $1 $2 $3 -o $@
++ echo $(CC) $(CFLAGS) $(LDFLAGS) $1 $2 $3 -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) $1 $2 $3 -o $@
+ endef
+
+ # Builds both GTK+2 and GTK+3 versions of the plugin.