aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-18 02:49:57 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-18 09:50:43 +0000
commit421d817d70737ebd459b7027274bf38bb2d9a2ff (patch)
tree330b713b1db4ccf0bf23ce974bd62440b00ebb9f /wsutil
parent7939f6888b62b811f62bbb5a22340af92133f846 (diff)
Don't compile anything with -msse4.2 unless the compiler supports it.
This includes ws_mempbrk_sse42.c; if the compiler doesn't support -msse4.2, HAS_SSE4_2 isn't defined, so all the stuff in ws_mempbrk_sse42.c that uses SSE 4.2 will be #ifdeffed out. Not all compilers with which we're built will support -msse4.2; in particular, the ones that aren't compiling for x86 won't.... Change-Id: I69566ca06f602104b40c78b3b06fcb7dfeb054b2 Reviewed-on: https://code.wireshark.org/review/2373 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/Makefile.am b/wsutil/Makefile.am
index 1f3acbc4fc..31bf198ba4 100644
--- a/wsutil/Makefile.am
+++ b/wsutil/Makefile.am
@@ -83,7 +83,7 @@ libwsutil_la_SOURCES = \
libwsutil_sse42_la_SOURCES = \
ws_mempbrk_sse42.c
-libwsutil_sse42_la_CFLAGS = $(AM_CFLAGS) -msse4.2
+libwsutil_sse42_la_CFLAGS = $(AM_CFLAGS) @CFLAGS_SSE42@
EXTRA_libwsutil_la_SOURCES= \
inet_aton.c \