Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit fcb7c67

Browse files
authored
Merge pull request #14 from hasufell/PR/fix-pkg-config
MAKE: Fix pkg-config invocation
2 parents 1bc163d + 30d7060 commit fcb7c67

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
CC ?= gcc
2-
CFLAGS ?= -g -pipe -fPIC
3-
LDFLAGS ?= -ldl -lm -ljabber
2+
CFLAGS ?= -g -pipe
43
PKG_CONFIG ?= pkg-config
54

65
DIR_PERM = 0755
76
FILE_PERM = 0644
87

98
HEADERS=-I./headers/jabber
109

11-
CFLAGS += $(shell $(PKG_CONFIG) --cflags glib-2.0 gio-2.0 purple) $(shell xml2-config --cflags) $(HEADERS)
12-
LIBS += $(shell $(PKG_CONFIG) --libs glib-2.0 gio-2.0 purple) $(shell xml2-config --libs) -L$(shell pkg-config --variable=plugindir purple)
10+
CFLAGS += -fPIC $(shell $(PKG_CONFIG) --cflags glib-2.0 gio-2.0 purple) $(shell xml2-config --cflags) $(HEADERS)
11+
LIBS += $(shell $(PKG_CONFIG) --libs glib-2.0 gio-2.0 purple) $(shell xml2-config --libs) -L$(shell $(PKG_CONFIG) --variable=plugindir purple) -ldl -lm -ljabber
1312
PLUGIN_DIR_PURPLE = $(shell $(PKG_CONFIG) --variable=plugindir purple)
1413
DATA_ROOT_DIR_PURPLE = $(shell $(PKG_CONFIG) --variable=datarootdir purple)
1514

0 commit comments

Comments
 (0)