summary refs log tree commit diff
path: root/gnu/packages/pciutils.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/pciutils.scm')
-rw-r--r--gnu/packages/pciutils.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/pciutils.scm b/gnu/packages/pciutils.scm
index c992988437..1e35e58a3f 100644
--- a/gnu/packages/pciutils.scm
+++ b/gnu/packages/pciutils.scm
@@ -87,7 +87,10 @@
 
                (("^IDSDIR=.*$")
                 ;; Installation directory of 'pci.ids.gz'.
-                "IDSDIR = $(SHAREDIR)/hwdata\n"))
+                "IDSDIR = $(SHAREDIR)/hwdata\n")
+               (("^OPT=")
+                "OPT?="))
+             (setenv "OPT" (getenv "CFLAGS"))
              #t))
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)