wmhdplop: Change gkhdplop_so_LDFLAGS to gkhdplop_so_LDADD in Makefile

This patch prevents a "undefined symbol: imlib_image_draw_pixel" error by
placing -lImlib2 after the *.o files during make.

Patch to fix Ubuntu bug #995272.

https://bugs.launchpad.net/ubuntu/+source/wmhdplop/+bug/995272
https://sources.debian.net/src/wmhdplop/0.9.9-5/debian/patches/
  ldflags-to-ldadd.patch/
This commit is contained in:
Doug Torrance 2016-11-24 10:26:48 -05:00 committed by Carlos R. Mafra
parent 581e3c6f43
commit 16fe98d279

View file

@ -18,6 +18,6 @@ LIBTOOLSUX_GKHDPLOP_SRC=wmhdplop.c util.c util.h procstat.c procstat.h devnames.
gkhdplop_so_SOURCES=$(LIBTOOLSUX_GKHDPLOP_SRC) gkhdplop_so_SOURCES=$(LIBTOOLSUX_GKHDPLOP_SRC)
gkhdplop_so_CFLAGS=-DGKRELLM -fPIC $(GTK2_CFLAGS) $(IMLIB2_CFLAGS) gkhdplop_so_CFLAGS=-DGKRELLM -fPIC $(GTK2_CFLAGS) $(IMLIB2_CFLAGS)
gkhdplop_so_LDFLAGS=-shared $(IMLIB2_LIBS) -lm gkhdplop_so_LDADD=-shared $(IMLIB2_LIBS) -lm
all: @GKHDPLOP@ all: @GKHDPLOP@