Fix FTBFS on mips.
Felix Geyer
12 years ago
0 | 0 |
bam (0.4.0-2) UNRELEASED; urgency=low
|
1 | 1 |
|
2 | |
* Fix FTBFS on GNU/kFreeBSD.
|
|
2 |
* Fix FTBFS on GNU/kFreeBSD and mips.
|
3 | 3 |
- Add fix-ftbfs-kfreebsd.diff
|
|
4 |
- Add fix-ftbfs-mips.diff
|
4 | 5 |
|
5 | 6 |
-- Felix Geyer <debfx-pkg@fobos.de> Fri, 13 May 2011 20:33:30 +0200
|
6 | 7 |
|
|
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 |
|
0 | 0 |
use-debian-liblua.diff
|
1 | 1 |
test-error-exit-code.diff
|
2 | 2 |
fix-ftbfs-kfreebsd.diff
|
|
3 |
fix-ftbfs-mips.diff
|