diff --git a/src/maxima.system b/src/maxima.system
index 76f2452..cf25f51 100644
--- a/src/maxima.system
+++ b/src/maxima.system
@@ -1,5 +1,8 @@
 ;;; -*- Lisp -*-
 
+(require :cmp)
+(setf c::*compile-in-constants* t)
+
 (in-package :cl-user)
 
 (pushnew :cl *features*)
@@ -75,6 +78,11 @@
 			     ;; Convert dir/foo.fas to dir/foo.o
 			     (make-pathname :type "o" :defaults p))
 			 files)))
+	(c::build-fasl "binary-ecl/maxima" :lisp-files obj
+			  :ld-flags
+			  (let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
+							      (find-package "MAXIMA")))))
+			    (if (and x (not (string= x ""))) (list x))))
 	(c::build-program "binary-ecl/maxima" :lisp-files obj
 			  :ld-flags
 			  (let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
