From e184557fa813280a8a6665c367d27402f0553c15 Mon Sep 17 00:00:00 2001 From: Juanlu Date: Fri, 11 Oct 2024 02:39:17 +0200 Subject: [PATCH] Add missing libraries to examples' Makefiles The Makefiles for the examples basic and rectangles do not work out of the box despite having the required dev libraries installed (Debian Bookworm). `pkg-config` seems to be missing some libraries required to successfully compile these examples. --- libdockapp/examples/basic/Makefile | 2 +- libdockapp/examples/rectangles/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libdockapp/examples/basic/Makefile b/libdockapp/examples/basic/Makefile index ea63d6c..a4a8317 100644 --- a/libdockapp/examples/basic/Makefile +++ b/libdockapp/examples/basic/Makefile @@ -2,7 +2,7 @@ CC=gcc INSTALL=install PREFIX=/usr/local CFLAGS+=-Wall `pkg-config --cflags dockapp` -LIBS=`pkg-config --libs dockapp` +LIBS=`pkg-config --libs dockapp x11` basic: basic.o $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) diff --git a/libdockapp/examples/rectangles/Makefile b/libdockapp/examples/rectangles/Makefile index 34624a7..5c6d9b0 100644 --- a/libdockapp/examples/rectangles/Makefile +++ b/libdockapp/examples/rectangles/Makefile @@ -2,7 +2,7 @@ CC=gcc INSTALL=install PREFIX=/usr/local CFLAGS+=-Wall `pkg-config --cflags dockapp` -LIBS=`pkg-config --libs dockapp` +LIBS=`pkg-config --libs dockapp x11 xext ` rectangles: rectangles.o $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) -- 2.11.4.GIT