diff options
Diffstat (limited to 'meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/lua-loadlibs-configure-in-fix.patch')
| -rw-r--r-- | meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/lua-loadlibs-configure-in-fix.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/lua-loadlibs-configure-in-fix.patch b/meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/lua-loadlibs-configure-in-fix.patch new file mode 100644 index 0000000000..23f2cd26a5 --- /dev/null +++ b/meta-oe/recipes-extended/gnuplot/gnuplot-4.6.5/lua-loadlibs-configure-in-fix.patch | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Index: gnuplot-4.6.5/configure.in | ||
| 2 | =================================================================== | ||
| 3 | --- gnuplot-4.6.5.orig/configure.in | ||
| 4 | +++ gnuplot-4.6.5/configure.in | ||
| 5 | @@ -690,6 +690,11 @@ if test "${with_lua}" = yes ; then | ||
| 6 | fi | ||
| 7 | |||
| 8 | if test "$with_lua" != no; then | ||
| 9 | + dnl check for dlopen/dl to fix loadlibs link failure | ||
| 10 | + AC_CHECK_FUNC([dlopen], [], | ||
| 11 | + AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl")) | ||
| 12 | + AC_SUBST(DLOPEN_LIBS) | ||
| 13 | + LUA_LIBS="$LUA_LIBS $DLOPEN_LIBS" | ||
| 14 | TERMLIBS="$TERMLIBS $LUA_LIBS" | ||
| 15 | CPPFLAGS="$CPPFLAGS $LUA_CFLAGS" | ||
| 16 | else | ||
