Files
meta-openembedded/meta-oe/recipes-extended/gnuplot/gnuplot/lua-loadlibs-configure-in-fix.patch
T
Qi.Chen@windriver.com 2372fb6412 gnuplot: upgrade to 5.0.5
Add PACKAGECONFIG for 'qt4' and default to not enable it as there's
do_compile failure when qt4 is enabled.

The obsolete '--without-lisp-files' option is removed.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-11-23 15:24:42 +01:00

17 lines
564 B
Diff

Index: gnuplot-4.6.5/configure.in
===================================================================
--- gnuplot-4.6.5.orig/configure.in
+++ gnuplot-4.6.5/configure.in
@@ -690,6 +690,11 @@ if test "${with_lua}" = yes ; then
fi
if test "$with_lua" != no; then
+ dnl check for dlopen/dl to fix loadlibs link failure
+ AC_CHECK_FUNC([dlopen], [],
+ AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
+ AC_SUBST(DLOPEN_LIBS)
+ LUA_LIBS="$LUA_LIBS $DLOPEN_LIBS"
TERMLIBS="$TERMLIBS $LUA_LIBS"
CPPFLAGS="$CPPFLAGS $LUA_CFLAGS"
else