2017-09-14 06:17:48 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2015-07-22 06:20:57 +02:00
|
|
|
From: Baruch Siach <baruch@tkos.co.il>
|
|
|
|
Date: Wed, 22 Jul 2015 07:04:33 +0300
|
|
|
|
Subject: [PATCH] Avoid searching host library path
|
|
|
|
|
|
|
|
The $(libdir) variable points to the location of the directory on the target
|
|
|
|
system, /usr/lib by default. When cross compiling this directory contains the
|
|
|
|
host libraries which may be different than target libraries. Don't use
|
|
|
|
$(libdir) in the library search path.
|
|
|
|
|
|
|
|
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
2017-09-14 06:17:48 +02:00
|
|
|
Signed-off-by: Joel Stanley <joel@jms.id.au>
|
2015-07-22 06:20:57 +02:00
|
|
|
---
|
2017-09-14 06:17:48 +02:00
|
|
|
cmdlang/Makefile.am | 3 +--
|
|
|
|
unix/Makefile.am | 6 ++----
|
|
|
|
2 files changed, 3 insertions(+), 6 deletions(-)
|
2015-07-22 06:20:57 +02:00
|
|
|
|
|
|
|
diff --git a/cmdlang/Makefile.am b/cmdlang/Makefile.am
|
2017-09-14 06:17:48 +02:00
|
|
|
index 264ee12be79f..0b3843784656 100644
|
2015-07-22 06:20:57 +02:00
|
|
|
--- a/cmdlang/Makefile.am
|
|
|
|
+++ b/cmdlang/Makefile.am
|
2017-09-14 06:17:48 +02:00
|
|
|
@@ -15,8 +15,7 @@ libOpenIPMIcmdlang_la_SOURCES = cmdlang.c cmd_domain.c cmd_entity.c cmd_mc.c \
|
|
|
|
libOpenIPMIcmdlang_la_LIBADD = -lm \
|
2015-07-22 06:20:57 +02:00
|
|
|
$(top_builddir)/utils/libOpenIPMIutils.la \
|
|
|
|
$(top_builddir)/lib/libOpenIPMI.la
|
2017-09-14 06:17:48 +02:00
|
|
|
-libOpenIPMIcmdlang_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION) \
|
|
|
|
- -L$(libdir)
|
|
|
|
+libOpenIPMIcmdlang_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION)
|
2015-07-22 06:20:57 +02:00
|
|
|
|
|
|
|
bin_PROGRAMS = openipmish
|
|
|
|
|
|
|
|
diff --git a/unix/Makefile.am b/unix/Makefile.am
|
2017-09-14 06:17:48 +02:00
|
|
|
index 5128839dad13..bd0f897ba8d6 100644
|
2015-07-22 06:20:57 +02:00
|
|
|
--- a/unix/Makefile.am
|
|
|
|
+++ b/unix/Makefile.am
|
2017-09-14 06:17:48 +02:00
|
|
|
@@ -10,14 +10,12 @@ lib_LTLIBRARIES = libOpenIPMIposix.la libOpenIPMIpthread.la
|
|
|
|
libOpenIPMIpthread_la_SOURCES = posix_thread_os_hnd.c selector.c
|
2015-07-22 06:20:57 +02:00
|
|
|
libOpenIPMIpthread_la_LIBADD = -lpthread $(GDBM_LIB) \
|
2017-09-14 06:17:48 +02:00
|
|
|
$(top_builddir)/utils/libOpenIPMIutils.la $(RT_LIB)
|
|
|
|
-libOpenIPMIpthread_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION) \
|
|
|
|
- -L$(libdir)
|
|
|
|
+libOpenIPMIpthread_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION)
|
2015-07-22 06:20:57 +02:00
|
|
|
|
|
|
|
libOpenIPMIposix_la_SOURCES = posix_os_hnd.c selector.c
|
|
|
|
libOpenIPMIposix_la_LIBADD = $(top_builddir)/utils/libOpenIPMIutils.la \
|
2017-09-14 06:17:48 +02:00
|
|
|
$(GDBM_LIB) $(RT_LIB)
|
|
|
|
-libOpenIPMIposix_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION) \
|
|
|
|
- -L$(libdir)
|
|
|
|
+libOpenIPMIposix_la_LDFLAGS = -rdynamic -version-info $(LD_VERSION)
|
2015-07-22 06:20:57 +02:00
|
|
|
|
|
|
|
noinst_HEADERS = heap.h
|
|
|
|
|