001-respect-cflags-ldflags.patch 561 B

123456789101112131415161718
  1. diff --git a/Makefile b/Makefile
  2. index 7994eea..b1f8d83 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -2,11 +2,11 @@ prefix ?= /usr/local
  6. libdir ?= $(prefix)/lib
  7. includedir ?= $(prefix)/include
  8. -CFLAGS:=-Wall -g -Wextra $(shell pkg-config glib-2.0 --cflags) -Wswitch-enum -std=gnu11 -O2 -fPIC
  9. +CFLAGS+=-Wall -g -Wextra $(shell pkg-config glib-2.0 --cflags) -Wswitch-enum -std=gnu11 -fPIC
  10. SO_VERSION = 0
  11. VERSION = 0
  12. INSTALL = install
  13. -LDLIBS:=$(shell pkg-config glib-2.0 --libs) -lz
  14. +LDLIBS+=$(shell pkg-config glib-2.0 --libs) -lz
  15. BOTLIBS := -Wl,-rpath,.