]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/openipmi/0001-Avoid-searching-host-library-path.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / openipmi / 0001-Avoid-searching-host-library-path.patch
1 From 0000000000000000000000000000000000000000 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
5
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.
10
11 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
12 Signed-off-by: Joel Stanley <joel@jms.id.au>
13 ---
14  cmdlang/Makefile.am | 3 +--
15  unix/Makefile.am    | 6 ++----
16  2 files changed, 3 insertions(+), 6 deletions(-)
17
18 diff --git a/cmdlang/Makefile.am b/cmdlang/Makefile.am
19 index 264ee12be79f..0b3843784656 100644
20 --- a/cmdlang/Makefile.am
21 +++ b/cmdlang/Makefile.am
22 @@ -15,8 +15,7 @@ libOpenIPMIcmdlang_la_SOURCES = cmdlang.c cmd_domain.c cmd_entity.c cmd_mc.c \
23  libOpenIPMIcmdlang_la_LIBADD = -lm \
24         $(top_builddir)/utils/libOpenIPMIutils.la \
25         $(top_builddir)/lib/libOpenIPMI.la
26 -libOpenIPMIcmdlang_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION) \
27 -       -L$(libdir)
28 +libOpenIPMIcmdlang_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION)
29  
30  bin_PROGRAMS = openipmish
31  
32 diff --git a/unix/Makefile.am b/unix/Makefile.am
33 index 5128839dad13..bd0f897ba8d6 100644
34 --- a/unix/Makefile.am
35 +++ b/unix/Makefile.am
36 @@ -10,14 +10,12 @@ lib_LTLIBRARIES = libOpenIPMIposix.la libOpenIPMIpthread.la
37  libOpenIPMIpthread_la_SOURCES = posix_thread_os_hnd.c selector.c
38  libOpenIPMIpthread_la_LIBADD = -lpthread $(GDBM_LIB) \
39         $(top_builddir)/utils/libOpenIPMIutils.la $(RT_LIB)
40 -libOpenIPMIpthread_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION) \
41 -       -L$(libdir)
42 +libOpenIPMIpthread_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION)
43  
44  libOpenIPMIposix_la_SOURCES = posix_os_hnd.c selector.c
45  libOpenIPMIposix_la_LIBADD = $(top_builddir)/utils/libOpenIPMIutils.la \
46         $(GDBM_LIB) $(RT_LIB)
47 -libOpenIPMIposix_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION) \
48 -       -L$(libdir)
49 +libOpenIPMIposix_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION)
50  
51  noinst_HEADERS = heap.h
52