Package: jaffl / 0.5.9-5

0004-mips-support.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -uNr jaffl-0.5.9.orig/libtest/GNUmakefile jaffl-0.5.9/libtest/GNUmakefile
--- jaffl-0.5.9.orig/libtest/GNUmakefile	2013-11-28 12:40:51.000000000 +0000
+++ jaffl-0.5.9/libtest/GNUmakefile	2013-11-26 16:44:45.000000000 +0000
@@ -121,10 +121,12 @@
 
 # On platforms (linux, solaris) that support both 32bit and 64bit, force building for one or the other
 ifneq ($(or $(findstring linux, $(OS)), $(findstring solaris, $(OS))),)
-  # Change the CC/LD instead of CFLAGS/LDFLAGS, incase other things in the flags
-  # makes the libffi build choke
-  CC += -m$(MODEL)
-  LD += -m$(MODEL)
+  ifneq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),mips mipsel)) 
+    # Change the CC/LD instead of CFLAGS/LDFLAGS, incase other things in the flags
+    # makes the libffi build choke
+    CC += -m$(MODEL)
+    LD += -m$(MODEL)
+  endif
 endif
 
 LIBTEST = $(BUILD_DIR)/$(LIBNAME)