From 3357afec00aaa334570ee1f2539d8797684a871d Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Fri, 11 Jan 2013 04:23:07 +0000 Subject: [PATCH] Makefile: use imlib2-config --libs for LDLIBS. This should improve compatibility for systems with Imlib2 installed in non-standard places, e.g. Mac OS X. On Debian GNU/Linux this results in some warnings when building a .deb: dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libdl.so.2 (it uses none of the library's symbols) dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libz.so.1 (it uses none of the library's symbols) dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libX11.so.6 (it uses none of the library's symbols) dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libfreetype.so.6 (it uses none of the library's symbols) dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/ssocr/usr/bin/ssocr was not linked against libXext.so.6 (it uses none of the library's symbols) I'm ignoring this. Special local adaptations like this have no place in a general build system. A dedicated Debian package might apply a local patch to strip these dependencies. This could result in a non-working ssocr as at least libdl is actually needed by Imlib2 to load images. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7d459c2..a4b9126 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CFLAGS := -D_FORTIFY_SOURCE=2 -Wall -W -Wextra -pedantic -Werror -pedantic-errors $(shell imlib2-config --cflags) -O6 -LDLIBS := -lImlib2 -lm +LDLIBS := $(shell imlib2-config --libs) PREFIX := /usr/local BINDIR := $(PREFIX)/bin MANDIR := $(PREFIX)/share/man/man1