quasselc: fix compilation with newer glib2
authorRosen Penev <redacted>
Sun, 19 Apr 2020 00:30:35 +0000 (17:30 -0700)
committerRosen Penev <redacted>
Sun, 19 Apr 2020 01:06:33 +0000 (18:06 -0700)
Needed to fix LDFLAGS variable.

Signed-off-by: Rosen Penev <redacted>
libs/quasselc/Makefile
libs/quasselc/patches/001-respect-cflags-ldflags.patch

index 4363200acccf1da7fecbfce11cdacf883e18fc25..721d17abc36635e071c2732b098b38cd7d64f0c2 100644 (file)
@@ -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/
index 4cc9df63a1ae5048b8dba4df825f3911901f92f8..f6ddef031ebee967ec037d056f1b828dee03eb1b 100644 (file)
  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
git clone https://git.99rst.org/PROJECT