mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: ots: Fix build with gcc-14.
* gnu/packages/ots.scm (ots)[arguments]<#:phases>{'fix-includes}: New phase.
Change-Id: I37bad828cc02328804b5829315a2296614cea70c
This commit is contained in:
parent
271355a644
commit
b78aea2f9b
1 changed files with 6 additions and 2 deletions
|
|
@ -55,6 +55,11 @@
|
|||
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-includes
|
||||
(lambda _
|
||||
(substitute* "src/libots.h"
|
||||
(("#include <glib.h>" all)
|
||||
(string-append all "\n#include <math.h>")))))
|
||||
(add-after 'configure 'set-shared-lib-extension
|
||||
(lambda _
|
||||
;; For some reason, the 'libtool' script (from Libtool
|
||||
|
|
@ -63,8 +68,7 @@
|
|||
;; This leads to the creation of 'libots-1' instead of
|
||||
;; 'libots-1.so'. Fix that.
|
||||
(substitute* "libtool"
|
||||
(("shrext_cmds") "shrext"))
|
||||
#t)))))
|
||||
(("shrext_cmds") "shrext")))))))
|
||||
(inputs
|
||||
(list glib popt libxml2 zlib))
|
||||
(native-inputs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue