forked from frugalos/liberasurecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sets -Wno-error=address-of-packed-member built with GCC9
See also frugalos#10.
- Loading branch information
Showing
5 changed files
with
28 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
index 16d4dc4..6614878 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -146,6 +146,11 @@ fi | ||
AC_SUBST(GCOV_FLAGS) | ||
AC_SUBST(GCOV_LDFLAGS) | ||
|
||
+# Check if a compiler supports "-Wno-error=address-of-packed-member" | ||
+# If it supports the option, we add it to CFLAGS. | ||
+AX_CHECK_COMPILE_FLAG([-Wno-error=address-of-packed-member], | ||
+ [CFLAGS="${CFLAGS} -Wno-error=address-of-packed-member"]) | ||
+ | ||
dnl Expand the sources and objects needed to build the library | ||
AC_SUBST(ac_aux_dir) | ||
AC_SUBST(OBJECTS) |