Signed-off-by: wzx <wuzx1226@qq.com> (cherry picked from commit ce2063d1d9a6c7ecdf378d9de75d95568143a5e8)
55 lines
1.8 KiB
Diff
Executable File
55 lines
1.8 KiB
Diff
Executable File
diff -Nuar lame-3.100.org/configure lame-3.100.sw/configure
|
|
--- lame-3.100.org/configure 2022-05-26 15:39:59.220000000 +0000
|
|
+++ lame-3.100.sw/configure 2022-05-26 15:46:24.500000000 +0000
|
|
@@ -17507,7 +17507,7 @@
|
|
*86)
|
|
OPTIMIZATION="${OPTIMIZATION} -mfancy-math-387"
|
|
;;
|
|
- alpha*)
|
|
+ alpha* | sw_64*)
|
|
OPTIMIZATION="${OPTIMIZATION} -mfp-regs"
|
|
|
|
$as_echo "#define FLOAT double" >>confdefs.h
|
|
@@ -17670,7 +17670,7 @@
|
|
# LINUX on Digital/Compaq Alpha CPUs
|
|
##########################################################################
|
|
case $host in
|
|
-alpha*-*-linux*)
|
|
+alpha*-*-linux* | sw_64*-*-linux*)
|
|
|
|
################################################################
|
|
#### Check if 'ccc' is in our path
|
|
diff -Nuar lame-3.100.org/libmp3lame/lame.c lame-3.100.sw/libmp3lame/lame.c
|
|
--- lame-3.100.org/libmp3lame/lame.c 2022-05-26 15:39:59.240000000 +0000
|
|
+++ lame-3.100.sw/libmp3lame/lame.c 2022-05-26 15:44:51.440000000 +0000
|
|
@@ -48,7 +48,7 @@
|
|
#include "tables.h"
|
|
|
|
|
|
-#if defined(__FreeBSD__) && !defined(__alpha__)
|
|
+#if defined(__FreeBSD__) && !defined(__alpha__) && !defined(__sw_64__)
|
|
#include <floatingpoint.h>
|
|
#endif
|
|
#ifdef __riscos__
|
|
diff -Nuar lame-3.100.org/libmp3lame/util.c lame-3.100.sw/libmp3lame/util.c
|
|
--- lame-3.100.org/libmp3lame/util.c 2022-05-26 15:39:59.240000000 +0000
|
|
+++ lame-3.100.sw/libmp3lame/util.c 2022-05-26 15:43:59.070000000 +0000
|
|
@@ -34,7 +34,7 @@
|
|
#include "tables.h"
|
|
|
|
#define PRECOMPUTE
|
|
-#if defined(__FreeBSD__) && !defined(__alpha__)
|
|
+#if defined(__FreeBSD__) && !defined(__alpha__) && !defined(__sw_64__)
|
|
# include <machine/floatingpoint.h>
|
|
#endif
|
|
|
|
@@ -845,7 +845,7 @@
|
|
|
|
|
|
|
|
-#if defined(__FreeBSD__) && !defined(__alpha__)
|
|
+#if defined(__FreeBSD__) && !defined(__alpha__) && !defined(__sw_64__)
|
|
{
|
|
/* seet floating point mask to the Linux default */
|
|
fp_except_t mask;
|