diff options
Diffstat (limited to 'gs_elpa/data/gs-elpa.eclass')
-rw-r--r-- | gs_elpa/data/gs-elpa.eclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gs_elpa/data/gs-elpa.eclass b/gs_elpa/data/gs-elpa.eclass index 2c3e922..aa4eca4 100644 --- a/gs_elpa/data/gs-elpa.eclass +++ b/gs_elpa/data/gs-elpa.eclass @@ -49,11 +49,10 @@ gs-elpa_src_compile() { local directories="" rm -f ${PN}-pkg.el || die elisp-make-autoload-file || die - for i in `find . -name "*.el" -print`; do - directories+=" -L " - directories+="$(dirname $i)" + directories=`find . -name "*.el" | xargs -I{} dirname {} | sort | uniq` + for i in ${directories}; do + BYTECOMPFLAGS+=" -L ${i}" done - BYTECOMPFLAGS+="${directories}" ebegin "Compiling GNU Emacs Elisp files" ${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} --eval '(byte-recompile-directory "./" 0 t)' eend $? "elisp-compile: batch-byte-compile failed" || die |