From a11683dd3c8b6901a6e5a413f793130b052c4944 Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Fri, 14 Nov 2008 15:17:23 +0000 Subject: [PATCH] If either FEATURE_X87 or FEATURE_SSE2 is set, build the C code with SSE2 support so that the binary will work with either. This means we can do the x87 and sse2 builds in either order. (I think). --- lisp/Config.linux_gencgc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/Config.linux_gencgc b/lisp/Config.linux_gencgc index c4cb5fcf7..aae702eaf 100644 --- a/lisp/Config.linux_gencgc +++ b/lisp/Config.linux_gencgc @@ -18,10 +18,17 @@ GENCGC = -DGENCGC GC_SRC = gencgc.c endif -# Enable support for SSE2 +# Enable support for SSE2. If FEATURE_X87 is set, we want SSE2 +# support in the C code too so that the same binary is built in both +# cases. If neither is set, then we don't want any SSE2 support at +# all. +ifdef FEATURE_X87 +SSE2 = -DFEATURE_SSE2 +else ifdef FEATURE_SSE2 SSE2 = -DFEATURE_SSE2 endif +endif RUNTIME = -Di386 $(GENCGC) $(LINKAGE) $(SSE2) # __NO_CTYPE so builds on glibc 2.3 will run on (some) older glibc's. -- GitLab