summary refs log tree commit diff
path: root/gnu/packages/code.scm
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2017-10-02 07:38:09 +0300
committerLudovic Courtès <ludo@gnu.org>2017-10-03 17:07:55 +0200
commit65d98906b87ce03e9e991fc3f336e5d62f0571a4 (patch)
tree86c69454b8daa3d6ec97cf4efad4835b0eef39fa /gnu/packages/code.scm
parent0ad03eae380f5d3fda4018c07c338727a8943fda (diff)
downloadguix-65d98906b87ce03e9e991fc3f336e5d62f0571a4.tar.gz
gnu: cflow: Fix preprocess option.
* gnu/packages/code.scm (cflow)[arguments]: New field.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/code.scm')
-rw-r--r--gnu/packages/code.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 6e04739f62..859dfd0ca7 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -58,7 +58,11 @@
 
     ;; 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