mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-11-24 12:18:42 +00:00
[topic--multi-arch]: NMU changes from Steve Langaseck to support multi-arch.
Signed-off-by: Manoj Srivastava <srivasta@debian.org>
This commit is contained in:
parent
d7d63488da
commit
f2805c23da
3 changed files with 22 additions and 1 deletions
|
@ -57,7 +57,7 @@ endif
|
|||
|
||||
man_MANS = make.1
|
||||
|
||||
DEFS = -DLOCALEDIR=\"$(localedir)\" -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\" @DEFS@
|
||||
DEFS = -DLOCALEDIR=\"$(localedir)\" -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\" -DMULTIARCH_DIRS="$(MULTIARCH_DIRS)" @DEFS@
|
||||
|
||||
AM_CPPFLAGS = $(GLOBINC)
|
||||
# Only process if target is MS-Windows
|
||||
|
|
18
configure.in
18
configure.in
|
@ -374,6 +374,24 @@ AC_DEFINE_UNQUOTED(MAKE_HOST,"$host",[Build host information.])
|
|||
MAKE_HOST="$host"
|
||||
AC_SUBST(MAKE_HOST)
|
||||
|
||||
AC_PATH_TOOL([DPKG_ARCH], [dpkg-architecture])
|
||||
AC_MSG_CHECKING([for multiarch paths])
|
||||
multiarch_triplet=""
|
||||
if test -n "$DPKG_ARCH"; then
|
||||
multiarch_triplet=$($DPKG_ARCH -qDEB_HOST_MULTIARCH)
|
||||
if test -z "$multiarch_triplet"; then
|
||||
multiarch_triplet=$($DPKG_ARCH -qDEB_HOST_GNU_TYPE)
|
||||
fi
|
||||
fi
|
||||
if test -n "$multiarch_triplet"; then
|
||||
MULTIARCH_DIRS="\\\"/lib/$multiarch_triplet\\\", \\\"/usr/lib/$multiarch_triplet\\\","
|
||||
AC_MSG_RESULT([$MULTIARCH_DIRS])
|
||||
else
|
||||
AC_MSG_RESULT([not found])
|
||||
fi
|
||||
|
||||
AC_SUBST(MULTIARCH_DIRS)
|
||||
|
||||
w32_target_env=no
|
||||
AM_CONDITIONAL([WINDOWSENV], false)
|
||||
|
||||
|
|
3
remake.c
3
remake.c
|
@ -1451,6 +1451,9 @@ library_search (char **lib, FILE_TIMESTAMP *mtime_ptr)
|
|||
{
|
||||
static char *dirs[] =
|
||||
{
|
||||
#ifdef MULTIARCH_DIRS
|
||||
MULTIARCH_DIRS
|
||||
#endif
|
||||
#ifndef _AMIGA
|
||||
"/lib",
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue