Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
patch 8.0.1710: building with Ruby fails
Problem:    Building with Ruby fails.
Solution:   Don't add -ansi when building with Ruby.
  • Loading branch information
brammool committed Apr 14, 2018
1 parent 2e32495 commit 2a43230
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/auto/configure
Expand Up @@ -14434,7 +14434,7 @@ if test "$zOSUnix" = "yes"; then
CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
fi

if test "$GCC" = yes -a "$GUITYPE" != "GTK"; then
if test "$GCC" = yes -a "$GUITYPE" != "GTK" -a "X$RUBY_CFLAGS" = "X"; then
CFLAGS="$CFLAGS -ansi"
fi

Expand Down
7 changes: 4 additions & 3 deletions src/configure.ac
Expand Up @@ -4403,9 +4403,10 @@ if test "$zOSUnix" = "yes"; then
CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
fi

dnl Declare what standards the code should comply with. But not when using
dnl GTK, the header files cause all kinds of warnings.
if test "$GCC" = yes -a "$GUITYPE" != "GTK"; then
dnl Declare what standards the code should comply with.
dnl But not when using GTK, the header files cause all kinds of warnings.
dnl But not when using Ruby, it needs "inline".
if test "$GCC" = yes -a "$GUITYPE" != "GTK" -a "X$RUBY_CFLAGS" = "X"; then
CFLAGS="$CFLAGS -ansi"
fi

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1710,
/**/
1709,
/**/
Expand Down

0 comments on commit 2a43230

Please sign in to comment.