summaryrefslogtreecommitdiff
path: root/meta/packages/module-init-tools/files
diff options
context:
space:
mode:
authorJeff Dike <jdike@linux.intel.com>2010-06-01 12:34:07 -0400
committerRichard Purdie <rpurdie@linux.intel.com>2010-06-03 12:28:10 +0100
commitfe4e6fc997431751968d51e0bd07098ac51ac7cb (patch)
treed0c4f02913be337604f865cebebd189f860794eb /meta/packages/module-init-tools/files
parent3161c9b15a39e552b383c704851edead8435365c (diff)
downloadopenembedded-core-fe4e6fc997431751968d51e0bd07098ac51ac7cb.tar.gz
openembedded-core-fe4e6fc997431751968d51e0bd07098ac51ac7cb.tar.bz2
openembedded-core-fe4e6fc997431751968d51e0bd07098ac51ac7cb.zip
module-init-tools: Don't cross-build static binaries
When building the native version, I get errors from ld complaining about not being able to find a static libc. Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Diffstat (limited to 'meta/packages/module-init-tools/files')
-rw-r--r--meta/packages/module-init-tools/files/no-static-binaries.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/packages/module-init-tools/files/no-static-binaries.patch b/meta/packages/module-init-tools/files/no-static-binaries.patch
new file mode 100644
index 0000000000..a9fbb27bf6
--- /dev/null
+++ b/meta/packages/module-init-tools/files/no-static-binaries.patch
@@ -0,0 +1,27 @@
+# Building a native, statically-linked insmod can result in ld failing because
+# it can't find a static libc. A native, static insmod is unnecessary anyway,
+# so this patch just removes it.
+#
+# - jdike@linux.intel.com
+
+Index: module-init-tools-3.2.2/Makefile.am
+===================================================================
+--- module-init-tools-3.2.2.orig/Makefile.am 2010-05-26 15:43:16.000000000 -0400
++++ module-init-tools-3.2.2/Makefile.am 2010-05-26 16:04:06.232990785 -0400
+@@ -5,16 +5,10 @@ rmmod_SOURCES = rmmod.c testing.h
+ depmod_SOURCES = depmod.c moduleops.c tables.c zlibsupport.c depmod.h moduleops.h tables.h list.h testing.h zlibsupport.h
+ modinfo_SOURCES = modinfo.c zlibsupport.c testing.h zlibsupport.h
+
+-insmod_static_SOURCES = insmod.c
+-insmod_static_LDFLAGS = -static
+-# We don't want the $(zlib_flags) here: that makes a dynamic executable
+-insmod_static_LDADD =
+-
+ EXTRA_insmod_SOURCES = backwards_compat.c
+ EXTRA_lsmod_SOURCES = backwards_compat.c
+ EXTRA_modprobe_SOURCES = backwards_compat.c
+ EXTRA_rmmod_SOURCES = backwards_compat.c
+-EXTRA_insmod_static_SOURCES = backwards_compat.c
+ EXTRA_depmod_SOURCES = moduleops_core.c
+ EXTRA_modinfo_SOURCES = backwards_compat.c
+