diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2018-05-10 13:17:48 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-05-13 21:44:10 +0200 |
commit | 766f95d1f0fa352fb60bc49454df4c6544b0feaa (patch) | |
tree | 3ce8d79646e2e5653a6d8f4a3dc459bd3f734c9e | |
parent | 35a093a17edc56184a9964ca646bea8ace627b31 (diff) | |
download | buildroot-766f95d1f0fa352fb60bc49454df4c6544b0feaa.tar.gz buildroot-766f95d1f0fa352fb60bc49454df4c6544b0feaa.zip |
snort: fix build on sparc v8
Add patch to remove -mcpu=v9 before checking sparc architecture
Fixes:
- http://autobuild.buildroot.net/results/59625daa154e3136171dcb89bdc3b8b31dc85021
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r-- | package/snort/0005-fix-sparc.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/snort/0005-fix-sparc.patch b/package/snort/0005-fix-sparc.patch new file mode 100644 index 0000000000..14792d2c59 --- /dev/null +++ b/package/snort/0005-fix-sparc.patch @@ -0,0 +1,28 @@ +When checking if the architecture supports the %time register +instruction, do not force -mcpu to v9 while doing so. Otherwise it's +like "let's see if this v9 instruction exists when I force the compiler +to think I'm using v9", which is non-sensical. + +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> + +diff -Naurp ./snort-2.9.11.1-orig/configure.in snort-2.9.11.1/configure.in +--- ./snort-2.9.11.1-orig/configure.in 2018-05-10 12:20:19.253510678 +0200 ++++ snort-2.9.11.1/configure.in 2018-05-10 12:40:18.547584998 +0200 +@@ -942,8 +942,6 @@ fi + + # check for sparc %time register + if eval "echo $host_cpu|grep -i sparc >/dev/null"; then +- OLD_CFLAGS="$CFLAGS" +- CFLAGS="$CFLAGS -mcpu=v9 " + AC_MSG_CHECKING([for sparc %time register]) + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( +@@ -957,8 +955,6 @@ if eval "echo $host_cpu|grep -i sparc >/ + AC_MSG_RESULT($sparcv9) + if test "x$sparcv9" = "xyes"; then + AC_DEFINE([SPARCV9],[1],[For sparc v9 with %time register]) +- else +- CFLAGS="$OLD_CFLAGS" + fi + fi + |