Some distributions put --as-needed in pkg-config and fltk-config results. *See you in /dev/null*

This commit is contained in:
Jonathan Moore Liles 2012-02-20 02:26:46 -08:00
parent 1d25063d11
commit 9d253909f9
1 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ require_package ()
fi fi
name="`upcase \"$1\"`" name="`upcase \"$1\"`"
append "${name}_LIBS=`pkg-config --libs $3`" append "${name}_LIBS=`pkg-config --libs $3 | sed 's/--as-needed//g'`"
append "${name}_CFLAGS=-DHAVE_${1} `pkg-config --cflags $3`" append "${name}_CFLAGS=-DHAVE_${1} `pkg-config --cflags $3`"
ok `pkg-config --modversion "$3"` ok `pkg-config --modversion "$3"`
@ -327,6 +327,6 @@ require_FLTK ()
use="$use --use-$1" use="$use --use-$1"
done done
append "FLTK_LIBS=`fltk-config $use --ldflags`" append "FLTK_LIBS=`fltk-config $use --ldflags | sed 's/--as-needed//g'`"
append "FLTK_CFLAGS=`fltk-config $use --cflags`" append "FLTK_CFLAGS=`fltk-config $use --cflags`"
} }