diff options
| author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-12-31 20:35:14 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-07-18 20:17:20 +0200 |
| commit | 6eac118449fec0664711b467de0015aa162cf3a1 (patch) | |
| tree | 44a5a97b136d08fc2d56ee500bffdd694990952b /gnu/packages/python.scm | |
| parent | 83e3aa22a8db2c4e97d6823bf90e5542f4df04de (diff) | |
gnu: python-2.7: Fix build with gcc-14.
* gnu/packages/python.scm (python-2.7)[arguments]: Relax gcc-14's strictness
in #:configure-flags's CFLAGS.
Change-Id: If3aef0edfcbdf0055ec7ca8425e03ff5c2df67b4
Diffstat (limited to 'gnu/packages/python.scm')
| -rw-r--r-- | gnu/packages/python.scm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3b1d91ed4c5..1538cf1dd83 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm | |||
| @@ -183,7 +183,14 @@ | |||
| 183 | (list | 183 | (list |
| 184 | #:test-target "test" | 184 | #:test-target "test" |
| 185 | #:configure-flags | 185 | #:configure-flags |
| 186 | #~(list "--enable-shared" ;allow embedding | 186 | #~(list ;; -fno-semantic-interposition reinstates some optimizations by gcc |
| 187 | ;; leading to around 15% speedup. This is the default starting from | ||
| 188 | ;; python 3.10. | ||
| 189 | ;; XXX FIXME: How to add "-Wno-error=implicit-function-declaration" | ||
| 190 | ;; *only* for *this* python-2 package? It's not needed for any | ||
| 191 | ;; package inheriting from us. | ||
| 192 | "CFLAGS=-Wno-error=incompatible-pointer-types -fno-semantic-interposition" | ||
| 193 | "--enable-shared" ;allow embedding | ||
| 187 | "--with-system-expat" ;for XML support | 194 | "--with-system-expat" ;for XML support |
| 188 | "--with-system-ffi" ;build ctypes | 195 | "--with-system-ffi" ;build ctypes |
| 189 | "--with-ensurepip=install" ;install pip and setuptools | 196 | "--with-ensurepip=install" ;install pip and setuptools |
| @@ -207,10 +214,6 @@ | |||
| 207 | "ac_cv_file__dev_ptmx=no" | 214 | "ac_cv_file__dev_ptmx=no" |
| 208 | "ac_cv_file__dev_ptc=no") | 215 | "ac_cv_file__dev_ptc=no") |
| 209 | #~()) | 216 | #~()) |
| 210 | ;; -fno-semantic-interposition reinstates some optimizations by gcc | ||
| 211 | ;; leading to around 15% speedup. This is the default starting from | ||
| 212 | ;; python 3.10. | ||
| 213 | "CFLAGS=-fno-semantic-interposition" | ||
| 214 | (string-append "LDFLAGS=-Wl,-rpath=" | 217 | (string-append "LDFLAGS=-Wl,-rpath=" |
| 215 | (assoc-ref %outputs "out") "/lib" | 218 | (assoc-ref %outputs "out") "/lib" |
| 216 | " -fno-semantic-interposition") | 219 | " -fno-semantic-interposition") |
