summaryrefslogtreecommitdiff
path: root/media-plugins/deadbeef-gnome-mmkeys/files/deadbeef-gnome-mmkeys.patch
blob: 1f64cd478f422e5f266fe323db57fcd1feb942bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/Makefile b/Makefile
index 35b19ca..e4f147e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-CC = gcc
-INCLUDES = $(shell pkg-config --cflags gio-2.0 glib-2.0)
-LIBS = $(shell pkg-config --libs gio-2.0 glib-2.0)
+CC ?= gcc
+INCLUDES ?= $(shell pkg-config --cflags gio-2.0 glib-2.0)
+LIBS ?= $(shell pkg-config --libs gio-2.0 glib-2.0)
 OPTIONS = -fPIC -shared
 NAME = ddb_gnome_mmkeys
 ROOTDIR = /
@@ -11,7 +11,7 @@ all: plugin
 plugin: $(NAME).so
 
 $(NAME).so: $(NAME).c
-	$(CC) $(INCLUDES) $(OPTIONS) -o $(NAME).so $(NAME).c $(LIBS)
+	$(CC) $(CFLAGS) $(INCLUDES) $(OPTIONS) -o $(NAME).so $(NAME).c $(LIBS) $(LDFLAGS)
 	
 install:
 	mkdir -p $(ROOTDIR)$(INSTALL_DIR)