aboutsummaryrefslogtreecommitdiffstats
path: root/package/mpg123/mpg123-cross.patch
blob: c3fb5830cec7fa0db14447ebf6c508eea3c5645d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
diff -ruN mpg123-0.59r.orig/Makefile mpg123-0.59r/Makefile
--- mpg123-0.59r.orig/Makefile	1999-06-15 22:39:06.000000000 +0200
+++ mpg123-0.59r/Makefile	2006-12-14 15:52:44.000000000 +0100
@@ -103,14 +103,14 @@
         mpg123-make
 
 linux:
-	$(MAKE) CC=gcc LDFLAGS= \
+	$(MAKE) LDFLAGS= \
 		OBJECTS='decode_i386.o dct64_i386.o decode_i586.o \
 			audio_oss.o term.o' \
 		CFLAGS='-DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX \
 			-DREAD_MMAP -DOSS -DTERM_CONTROL\
-			-Wall -O2 -m486 \
+			-Wall \
 			-fomit-frame-pointer -funroll-all-loops \
-			-finline-functions -ffast-math' \
+			-finline-functions -ffast-math $(CFLAGS)' \
 		mpg123-make
 
 linux-3dnow:
@@ -246,6 +246,22 @@
 			-finline-functions -ffast-math' \
 		mpg123-make
 
+linux-bigend:
+	$(MAKE) LDFLAGS= OBJECTS='decode.o dct64.o audio_oss.o' \
+		CFLAGS+='-DREAL_IS_FLOAT -DLINUX -DREAD_MMAP \
+			-DOSS -DOSS_BIG_ENDIAN -Wall \
+			-fomit-frame-pointer -funroll-loops \
+			-finline-functions -ffast-math $(CFLAGS)' \
+		mpg123-make
+
+linux-littleend:
+	$(MAKE) LDFLAGS= OBJECTS='decode.o dct64.o audio_oss.o' \
+		CFLAGS='-DREAL_IS_FLOAT -DLINUX -DREAD_MMAP \
+			-DOSS -Wall \
+			-fomit-frame-pointer -funroll-loops \
+			-finline-functions -ffast-math $(CFLAGS)' \
+		mpg123-make
+
 linux-sajber:
 	@ $(MAKE) FRONTEND=sajberplay-make linux-frontend