Skip to content

Instantly share code, notes, and snippets.

@ekr1
Last active June 15, 2018 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekr1/7313abef4348daa038dd to your computer and use it in GitHub Desktop.
Save ekr1/7313abef4348daa038dd to your computer and use it in GitHub Desktop.
Patch for -Wno-packed-bitfield-compat error building ruby 2.2.x against gcc < 4.4.0
diff --git a/configure b/configure
*** a/configure 2015-08-18 16:05:00.000000000 +0200
--- b/configure 2015-11-06 13:42:27.000000000 +0100
***************
*** 7484,7490 ****
-Werror=implicit-function-declaration \
-Werror=division-by-zero \
-Werror=deprecated-declarations \
- -Wno-packed-bitfield-compat \
$extra_warning \
; do
if test "$particular_werror_flags" != yes; then
--- 7484,7489 ----
diff -cw a/configure.in b/configure.in
*** a/configure.in 2015-05-19 21:06:36.000000000 +0200
--- b/configure.in 2015-11-06 13:41:44.000000000 +0100
***************
*** 803,809 ****
-Werror=implicit-function-declaration \
-Werror=division-by-zero \
-Werror=deprecated-declarations \
- -Wno-packed-bitfield-compat \
$extra_warning \
; do
if test "$particular_werror_flags" != yes; then
--- 803,808 ----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment