gnu: cflow: Fix preprocess option.
authorOleg Pykhalov <go.wigust@gmail.com>
Mon, 2 Oct 2017 04:38:09 +0000 (07:38 +0300)
committerLudovic Courtès <ludo@gnu.org>
Tue, 3 Oct 2017 15:07:55 +0000 (17:07 +0200)
* gnu/packages/code.scm (cflow)[arguments]: New field.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
gnu/packages/code.scm

index 6e04739..859dfd0 100644 (file)
 
     ;; Needed to have cflow-mode.el installed.
     (native-inputs `(("emacs" ,emacs-minimal)))
-
+    (arguments
+     '(#:configure-flags (list (string-append "CPPFLAGS="
+                                              "-D" "CFLOW_PREPROC=\\\""
+                                              (assoc-ref %build-inputs "gcc")
+                                              "/bin/cpp\\\""))))
     (home-page "https://www.gnu.org/software/cflow/")
     (synopsis "Create a graph of control flow within a program")
     (description