summaryrefslogtreecommitdiff
path: root/media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch
blob: 7866cce1f759e9e379fbbb9b593025e808a3da11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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.