From 030cc5570ca9caa0f2b7392c6df6667582dee72d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 18 Apr 2020 17:30:35 -0700 Subject: [PATCH] quasselc: fix compilation with newer glib2 Needed to fix LDFLAGS variable. Signed-off-by: Rosen Penev --- libs/quasselc/Makefile | 4 +++- .../patches/001-respect-cflags-ldflags.patch | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/libs/quasselc/Makefile b/libs/quasselc/Makefile index 4363200acc..721d17abc3 100644 --- a/libs/quasselc/Makefile +++ b/libs/quasselc/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=quasselc PKG_SOURCE_DATE:=2017-01-11 PKG_SOURCE_VERSION:=a0a1e6bd87d3eac68b5369972d1c2035cfe47e94 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/phhusson/QuasselC/tar.gz/$(PKG_SOURCE_VERSION)? @@ -43,6 +43,8 @@ define Package/quasselc/description An implementation of the Quassel protocol in pure C. endef +TARGET_LDFLAGS += -liconv + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/quasselc $(CP) $(PKG_INSTALL_DIR)/usr/include/quasselc/* $(1)/usr/include/quasselc/ diff --git a/libs/quasselc/patches/001-respect-cflags-ldflags.patch b/libs/quasselc/patches/001-respect-cflags-ldflags.patch index 4cc9df63a1..f6ddef031e 100644 --- a/libs/quasselc/patches/001-respect-cflags-ldflags.patch +++ b/libs/quasselc/patches/001-respect-cflags-ldflags.patch @@ -10,7 +10,20 @@ VERSION = 0 INSTALL = install -LDLIBS:=$(shell pkg-config glib-2.0 --libs) -lz -+LDLIBS+=$(shell pkg-config glib-2.0 --libs) -lz ++LDFLAGS+=$(shell pkg-config glib-2.0 --libs) -lz BOTLIBS := -Wl,-rpath,. +@@ -15,10 +15,10 @@ lib_objects=setters.o getters.o main.o cmds.o negotiation.o io.o symbols.o + all: bot libquasselc.so.$(VERSION) quasselc.pc + + libquasselc.so.$(VERSION): $(lib_objects) +- $(CC) -shared -o $@ -Wl,-soname,libquasselc.so.$(SO_VERSION) $^ $(LDLIBS) ++ $(CC) -shared -o $@ -Wl,-soname,libquasselc.so.$(SO_VERSION) $^ $(LDFLAGS) + + bot: bot.o display.o libquasselc.so.$(VERSION) +- $(CC) -o $@ $^ $(LDLIBS) $(BOTLIBS) ++ $(CC) -o $@ $^ $(LDFLAGS) $(BOTLIBS) + + clean: + rm -f *.o bot libquasselc.so.$(VERSION) quasselc.pc -- 2.30.2