diff --git a/eclass/octaveforge.eclass b/eclass/octaveforge.eclass index ed609cd8cb..70185a6c78 100644 --- a/eclass/octaveforge.eclass +++ b/eclass/octaveforge.eclass @@ -83,7 +83,8 @@ octaveforge_src_compile() { cmd="disp(__octave_config_info__('octlibdir'));" OCTLIBDIR=$(octavecommand "${cmd}" || die) - export LFLAGS="-L${OCTLIBDIR}" + export LFLAGS="${LFLAGS} -L${OCTLIBDIR}" + export LDFLAGS="${LDFLAGS} -L${OCTLIBDIR}" if [[ -e src/Makefile ]]; then emake -C src all