Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Path guile on mingw
Browse files Browse the repository at this point in the history
Now that LilyPond builds with -std=c++11, the compiler headers try
to use ::copysign.
  • Loading branch information
hahnjo committed Mar 2, 2020
1 parent f1469d0 commit 6240dc8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions gub/specs/guile.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def install (self):
self.system ('cd %(install_prefix)s%(cross_dir)s/bin && cp -pv %(target_architecture)s-guile-config guile-config')

class Guile__mingw (Guile):
patches = Guile.patches + ['guile-1.8.7-mingw-copysign.patch']
def __init__ (self, settings, source):
Guile.__init__ (self, settings, source)
# Configure (compile) without -mwindows for console
Expand Down
10 changes: 10 additions & 0 deletions patches/guile-1.8.7-mingw-copysign.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- guile-1.8.7/libguile/numbers.h 2020-03-02 15:43:11.673024370 +0100
+++ guile-1.8.7/libguile/numbers.h 2020-03-02 15:43:27.876044196 +0100
@@ -91,7 +91,6 @@
# ifndef GO32
# include <float.h>
# ifdef __MINGW32__
-# define copysign _copysign
# define finite _finite
# endif /* __MINGW32__ */
# endif /* ndef GO32 */

0 comments on commit 6240dc8

Please sign in to comment.