Codebase list bam / 9dff7c2
Fix FTBFS on mips. Felix Geyer 12 years ago
3 changed file(s) with 32 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
00 bam (0.4.0-2) UNRELEASED; urgency=low
11
2 * Fix FTBFS on GNU/kFreeBSD.
2 * Fix FTBFS on GNU/kFreeBSD and mips.
33 - Add fix-ftbfs-kfreebsd.diff
4 - Add fix-ftbfs-mips.diff
45
56 -- Felix Geyer <debfx-pkg@fobos.de> Fri, 13 May 2011 20:33:30 +0200
67
0 Description: Fix FTBFS on mips.
1 Author: Felix Geyer <debfx-pkg@fobos.de>
2
3 diff --git a/src/platform.h b/src/platform.h
4 --- a/src/platform.h
5 +++ b/src/platform.h
6 @@ -104,6 +104,11 @@
7 #define BAM_ARCH_STRING "sparc"
8 #endif
9
10 +#if defined(__mips__)
11 + #define BAM_ARCH_MIPS
12 + #define BAM_ARCH_STRING "mips"
13 +#endif
14 +
15
16 #ifndef BAM_FAMILY_STRING
17 #define BAM_FAMILY_STRING "unknown"
18 diff --git a/tests/sharedlib/bam.lua b/tests/sharedlib/bam.lua
19 --- a/tests/sharedlib/bam.lua
20 +++ b/tests/sharedlib/bam.lua
21 @@ -1,6 +1,6 @@
22 settings = NewSettings()
23
24 -if arch == "amd64" then
25 +if (arch == "amd64") or (arch == "mips") then
26 settings.cc.flags:Add("-fPIC")
27 end
28
00 use-debian-liblua.diff
11 test-error-exit-code.diff
22 fix-ftbfs-kfreebsd.diff
3 fix-ftbfs-mips.diff