guix/gnu/packages/patches/gobject-introspection-cc.patch
Raghav Gururajan 22f7d4bce1
gnu: gobject-introspection: Fix the header of patch files.
* gnu/packages/patches/gobject-introspection-absolute-shlib-path.patch: Modify.
* gnu/packages/patches/gobject-introspection-cc.patch: Modify.
2021-09-08 11:18:17 -04:00

22 lines
617 B
Diff

Use gcc as the default C compiler if CC is not set.
---
giscanner/__init__.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/giscanner/__init__.py b/giscanner/__init__.py
index 7c2f365a..607fe341 100644
--- a/giscanner/__init__.py
+++ b/giscanner/__init__.py
@@ -21,6 +21,8 @@ import os
builddir = os.environ.get('UNINSTALLED_INTROSPECTION_BUILDDIR')
if builddir is not None:
__path__.append(os.path.join(builddir, 'giscanner')) # type: ignore # mypy issue #1422
+if not 'CC' in os.environ:
+ os.environ['CC'] = 'gcc'
try:
from ._version import __version__
except ImportError:
--
2.33.0