Skip to content

Instantly share code, notes, and snippets.

@retrage
Created July 10, 2019 03:51
Show Gist options
  • Save retrage/abcc4c79156b968a870e31249b6a0516 to your computer and use it in GitHub Desktop.
Save retrage/abcc4c79156b968a870e31249b6a0516 to your computer and use it in GitHub Desktop.
Workaround for solo5 rumprun build with gcc >= 7
diff --git a/build-rr.sh b/build-rr.sh
index 2a8e4e1..ecd0646 100755
--- a/build-rr.sh
+++ b/build-rr.sh
@@ -389,6 +389,14 @@ buildrump ()
#
[ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \
&& extracflags="$extracflags -F CPPFLAGS=-Wimplicit-fallthrough=0"
+ [ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \
+ && extracflags="$extracflags -F CPPFLAGS=-Wno-maybe-uninitialized"
+ [ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \
+ && extracflags="$extracflags -F CPPFLAGS=-Wno-cast-function-type"
+ [ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \
+ && extracflags="$extracflags -F CPPFLAGS=-Wno-tautological-compare"
+ [ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \
+ && extracflags="$extracflags -F CPPFLAGS=-Wno-attributes"
extracflags="${extracflags} ${TLSCFLAGS} ${FREQ_SETUP}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment