snowball-{hdmiservice, init}: remove packages
[buildroot-gz.git] / package / openipmi / 0001-Avoid-searching-host-library-path.patch
blob9a51d97e27960799f404ab0f4cc95071df86ebfb
1 From ca6e99d9fa4bf503a883407e964eaad5e18d51c7 Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Wed, 22 Jul 2015 07:04:33 +0300
4 Subject: [PATCH] Avoid searching host library path
6 The $(libdir) variable points to the location of the directory on the target
7 system, /usr/lib by default. When cross compiling this directory contains the
8 host libraries which may be different than target libraries. Don't use
9 $(libdir) in the library search path.
11 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
12 ---
13 cmdlang/Makefile.am | 2 +-
14 unix/Makefile.am | 4 ++--
15 2 files changed, 3 insertions(+), 3 deletions(-)
17 diff --git a/cmdlang/Makefile.am b/cmdlang/Makefile.am
18 index e80090dd0c6f..b59ff244b9a8 100644
19 --- a/cmdlang/Makefile.am
20 +++ b/cmdlang/Makefile.am
21 @@ -16,7 +16,7 @@ libOpenIPMIcmdlang_la_LIBADD = -lm \
22 $(top_builddir)/utils/libOpenIPMIutils.la \
23 $(top_builddir)/lib/libOpenIPMI.la
24 libOpenIPMIcmdlang_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION) \
25 - -Wl,-Map -Wl,libOpenIPMIcmdlang.map -L$(libdir)
26 + -Wl,-Map -Wl,libOpenIPMIcmdlang.map
28 bin_PROGRAMS = openipmish
30 diff --git a/unix/Makefile.am b/unix/Makefile.am
31 index a7921477e1c4..a108bc679c9a 100644
32 --- a/unix/Makefile.am
33 +++ b/unix/Makefile.am
34 @@ -11,13 +11,13 @@ libOpenIPMIpthread_la_SOURCES = posix_thread_os_hnd.c selector.c
35 libOpenIPMIpthread_la_LIBADD = -lpthread $(GDBM_LIB) \
36 $(top_builddir)/utils/libOpenIPMIutils.la
37 libOpenIPMIpthread_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION) \
38 - -Wl,-Map -Wl,libOpenIPMIpthread.map -L$(libdir)
39 + -Wl,-Map -Wl,libOpenIPMIpthread.map
41 libOpenIPMIposix_la_SOURCES = posix_os_hnd.c selector.c
42 libOpenIPMIposix_la_LIBADD = $(top_builddir)/utils/libOpenIPMIutils.la \
43 $(GDBM_LIB)
44 libOpenIPMIposix_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION) \
45 - -Wl,-Map -Wl,libOpenIPMIposix.map -L$(libdir)
46 + -Wl,-Map -Wl,libOpenIPMIposix.map
48 noinst_HEADERS = heap.h
50 --
51 2.1.4