mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
libsepol: Apply ranlib patch for cross compiling.
This commit is contained in:
parent
354213d8e8
commit
6fbf5e8eb7
|
|
@ -0,0 +1,31 @@
|
|||
From 2ee1e9651ec4aa78daf15dfef74e0b6aaeb8db1e Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Tue, 21 Feb 2012 14:47:45 +0800
|
||||
Subject: [PATCH] libsepol: Change ranlib for cross compiling.
|
||||
|
||||
Use target host-tools to encapsulate any difference between local tools
|
||||
on different machines. For example, on local PC, libsepol.a's index could
|
||||
be added successfully by local ranlib, however, it will fail on some sever,
|
||||
so we'd better use host-tools $(AR) rather than any local ranlib.
|
||||
|
||||
Signed-off-by: Harry Ciao<qingtao.cao@windriver.com>
|
||||
---
|
||||
src/Makefile | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index cd8e767..beea232 100644
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -21,7 +21,7 @@ all: $(LIBA) $(LIBSO) $(LIBPC)
|
||||
|
||||
$(LIBA): $(OBJS)
|
||||
$(AR) rcs $@ $^
|
||||
- ranlib $@
|
||||
+ $(AR) s $@
|
||||
|
||||
$(LIBSO): $(LOBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,$(LIBSO),--version-script=libsepol.map,-z,defs
|
||||
--
|
||||
1.7.5.4
|
||||
|
||||
|
|
@ -14,5 +14,7 @@ inherit lib_package
|
|||
SRC_URI[md5sum] = "909dae553edb34ea2224002a0c529cb0"
|
||||
SRC_URI[sha256sum] = "8f5ea42ae6cc00b21f0e5f31f354d19fcce3edfe9328971d266245718714b1e8"
|
||||
|
||||
SRC_URI += "file://libsepol-Change-ranlib-for-cross-compiling.patch"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,5 +14,7 @@ inherit lib_package
|
|||
SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e"
|
||||
PV = "2.1.4+git${SRCPV}"
|
||||
|
||||
SRC_URI += "file://libsepol-Change-ranlib-for-cross-compiling.patch"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user