Skip to content

Commit 3cddb00

Browse files
heireckagitster
authored andcommitted
gnome-keyring: Don't hard-code pkg-config executable
Helpful if your pkg-config executable has a prefix based on the architecture, for example. Signed-off-by: Heiko Becker <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7654286 commit 3cddb00

File tree

1 file changed

+3
-2
lines changed
  • contrib/credential/gnome-keyring

1 file changed

+3
-2
lines changed

contrib/credential/gnome-keyring/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ all:: $(MAIN)
44
CC = gcc
55
RM = rm -f
66
CFLAGS = -g -O2 -Wall
7+
PKG_CONFIG = pkg-config
78

89
-include ../../../config.mak.autogen
910
-include ../../../config.mak
1011

11-
INCS:=$(shell pkg-config --cflags gnome-keyring-1 glib-2.0)
12-
LIBS:=$(shell pkg-config --libs gnome-keyring-1 glib-2.0)
12+
INCS:=$(shell $(PKG_CONFIG) --cflags gnome-keyring-1 glib-2.0)
13+
LIBS:=$(shell $(PKG_CONFIG) --libs gnome-keyring-1 glib-2.0)
1314

1415
SRCS:=$(MAIN).c
1516
OBJS:=$(SRCS:.c=.o)

0 commit comments

Comments
 (0)