summaryrefslogtreecommitdiffstats
path: root/package/srelay
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-03-28 13:18:43 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-03-28 13:18:43 +0000
commit6c65a51fbcc883f60703dcc2c7e64bf08cb42c6b (patch)
treeb223bf34069ca3ca0b67e59b06f9757fd47878a2 /package/srelay
parent006b5034f9bab869e7865b2540ffc65f9bdbb169 (diff)
Add cross-compilation patch to have LINUX defined, especially when build system is not x86
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3519 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/srelay')
-rw-r--r--package/srelay/patches/01-cross_compile.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/srelay/patches/01-cross_compile.patch b/package/srelay/patches/01-cross_compile.patch
new file mode 100644
index 000000000..cda32e6aa
--- /dev/null
+++ b/package/srelay/patches/01-cross_compile.patch
@@ -0,0 +1,12 @@
+diff -urN srelay-0.4.6/configure srelay-0.4.6.new/configure
+--- srelay-0.4.6/configure 2003-04-14 07:36:15.000000000 +0200
++++ srelay-0.4.6.new/configure 2006-03-28 15:11:42.000000000 +0200
+@@ -1395,7 +1395,7 @@
+ ;;
+ linux*)
+ case "$build_cpu" in
+- i*86)
++ i*86 | mips* | powerpc* | sparc*)
+ OS=LINUX
+ cat >>confdefs.h <<\_ACEOF
+ #define LINUX 1