Skip to content

Commit

Permalink
fix not linking to dbus
Browse files Browse the repository at this point in the history
  • Loading branch information
Deminder committed Oct 10, 2022
1 parent a8b4d2c commit 5b796b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ TARGET = lib/mpv_inhibit_gnome.so
SRC_DIR = src
XDG_CONFIG_DIR := $(or $(XDG_CONFIG_HOME),$(HOME)/.config)

C_FLAGS = -Wall -g -fPIC $(shell pkg-config --libs --cflags dbus-1)
LIB_DEP = $(shell pkg-config --libs --cflags dbus-1)
C_FLAGS = -Wall -g -fPIC $(LIB_DEP)

SRCS := $(shell find $(SRC_DIR) -name *.c)
OBJS := $(patsubst src/%.c,build/%.o,$(SRCS))

$(TARGET): $(OBJS)
-@mkdir -p $(@D)
gcc -Wall -g -shared $^ -o $@
gcc $(LIB_DEP) -shared $^ -o $@

build/%.o: src/%.c
-@mkdir -p $(@D)
Expand Down

0 comments on commit 5b796b3

Please sign in to comment.