summaryrefslogtreecommitdiff
path: root/scripts/build/companion_libs/200-libelf.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2016-12-06 02:24:05 (GMT)
committerGitHub <noreply@github.com>2016-12-06 02:24:05 (GMT)
commitf5a375e4070e484a5fc196f1cb2014f528693ed9 (patch)
treeae42cf48cac90a24dcb4d8994173ddc1974b289d /scripts/build/companion_libs/200-libelf.sh
parent4042269de621e166235308f139e89c92e379040d (diff)
parentee1c04378c471dfea04808963db78a91fc89d62e (diff)
Merge pull request #443 from KirillSmirnov/gdb-native
debug/gdb: properly link with expat
Diffstat (limited to 'scripts/build/companion_libs/200-libelf.sh')
-rw-r--r--scripts/build/companion_libs/200-libelf.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/build/companion_libs/200-libelf.sh b/scripts/build/companion_libs/200-libelf.sh
index e00fa16..7d01563 100644
--- a/scripts/build/companion_libs/200-libelf.sh
+++ b/scripts/build/companion_libs/200-libelf.sh
@@ -69,13 +69,24 @@ if [ "${CT_LIBELF_TARGET}" = "y" ]; then
do_libelf_for_target() {
local -a libelf_opts
+ local prefix
CT_DoStep INFO "Installing libelf for the target"
CT_mkdir_pushd "${CT_BUILD_DIR}/build-libelf-target-${CT_TARGET}"
+ case "${CT_TARGET}" in
+ *-*-mingw*)
+ prefix="/mingw"
+ ;;
+ *)
+ prefix="/usr"
+ ;;
+ esac
+
libelf_opts+=( "destdir=${CT_SYSROOT_DIR}" )
libelf_opts+=( "host=${CT_TARGET}" )
- libelf_opts+=( "prefix=/usr" )
+
+ libelf_opts+=( "prefix=${prefix}" )
libelf_opts+=( "shared=y" )
do_libelf_backend "${libelf_opts[@]}"