From d7b0896a2d772a251cec01a3c167308c83db4adb Mon Sep 17 00:00:00 2001
Package: directfb
Version: 1.0.1
From: Guillem Jover <guillem@debian.org>
Date: Thu, 13 Dec 2007 10:55:14 +0200
Status: applied
Subject: [PATCH] Add missing libsysfs when statically linking

---
 directfb-config.in |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/directfb-config.in b/directfb-config.in
index ac73b9f..9ee8310 100644
--- a/directfb-config.in
+++ b/directfb-config.in
@@ -126,6 +126,9 @@ while test $# -gt 0; do
       for i in `echo $optarg | sed 's/,/ /g'`; do
         echo_system="$echo_system $moduledir/systems/libdirectfb_$i.o"
         case $i in
+          fbdev)
+            echo_system="$echo_system @SYSFS_LIBS@"
+            ;;
           sdl)
             echo_system="$echo_system @SDL_LIBS@"
             ;;
@@ -233,7 +236,7 @@ if test -n "$echo_static"; then
 	echo -static
 
 	if test -z "$echo_system"; then
-		echo $moduledir/systems/libdirectfb_fbdev.o
+		echo $moduledir/systems/libdirectfb_fbdev.o @SYSFS_LIBS@
 	fi
 
 	if test -z "$echo_wm"; then
-- 
1.5.3.7

