Ticket #43843: patch-config.mk.diff

File patch-config.mk.diff, 1.4 KB (added by harciga, 10 years ago)
  • config.mk

    diff --git a/config.mk b/config.mk
    index 63051ad..53bfc29 100644
    a b CAIRO_LIB ?= $(shell pkg-config --libs cairo) 
    2222LIBARCHIVE_INC ?= $(shell pkg-config --cflags libarchive)
    2323LIBARCHIVE_LIB ?= $(shell pkg-config --libs libarchive)
    2424
    25 GLIB_INC ?= $(shell pkg-config --cflags glib-2.0)
    26 GLIB_LIB ?= $(shell pkg-config --libs   glib-2.0)
     25GLIB_INC ?= $(shell pkg-config --cflags glib-2.0 gio-2.0)
     26GLIB_LIB ?= $(shell pkg-config --libs   glib-2.0 gio-2.0)
     27
     28GDK_INC ?= $(shell pkg-config --cflags gdk-pixbuf-2.0 gdk-${ZATHURA_GTK_VERSION}.0)
     29GDK_LIB ?= $(shell pkg-config --libs   gdk-pixbuf-2.0 gdk-${ZATHURA_GTK_VERSION}.0)
    2730
    2831GIRARA_INC ?= $(shell pkg-config --cflags girara-gtk${ZATHURA_GTK_VERSION})
    2932GIRARA_LIB ?= $(shell pkg-config --libs girara-gtk${ZATHURA_GTK_VERSION})
    3033
    3134ZATHURA_INC ?= $(shell pkg-config --cflags zathura)
    3235
    33 INCS = ${GIRARA_INC} ${GLIB_INC} ${ZATHURA_INC} ${LIBARCHIVE_INC}
    34 LIBS = ${GIRARA_LIB} ${GLIB_LIB} ${LIBARCHIVE_LIB}
     36INCS = ${GIRARA_INC} ${GDK_INC} ${GLIB_INC} ${ZATHURA_INC} ${LIBARCHIVE_INC}
     37LIBS = ${GIRARA_LIB} ${GDK_LIB} ${GLIB_LIB} ${LIBARCHIVE_LIB}
    3538
    3639# plugindir
    3740PLUGINDIR ?= $(shell pkg-config --variable=plugindir zathura)
    endif 
    4245# flags
    4346CFLAGS += -std=c99 -fPIC -pedantic -Wall -Wno-format-zero-length $(INCS)
    4447
     48# linker flags
     49LDFLAGS += -fPIC -fno-common
     50
    4551# debug
    4652DFLAGS ?= -g
    4753