summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMichael Osipov <michael.osipov@siemens.com>2019-05-16 09:34:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-07 17:06:11 (GMT)
commit9a1699c88eceaba695603511566727a4629284a1 (patch)
tree26e7c770d8b8a3b388ff063f39ba1813ec23afa8 /configure.ac
parentb697d92f56511e804b8ba20ccbe7bdc85dc66810 (diff)
downloadgit-9a1699c88eceaba695603511566727a4629284a1.zip
git-9a1699c88eceaba695603511566727a4629284a1.tar.gz
git-9a1699c88eceaba695603511566727a4629284a1.tar.bz2
configure: Detect linking style for HP aCC on HP-UX
HP aCC does not accept any of the previously tested CC_LD_DYNPATH formats, but only its own[1] "-Wl,+b" format. Add it to configure.ac. 1. http://nixdoc.net/man-pages/hp-ux/man1/ld_pa.1.html Signed-off-by: Michael Osipov <michael.osipov@siemens.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index be3b55f..a43b476 100644
--- a/configure.ac
+++ b/configure.ac
@@ -475,8 +475,18 @@ else
if test "$git_cv_ld_rpath" = "yes"; then
CC_LD_DYNPATH=-rpath
else
- CC_LD_DYNPATH=
- AC_MSG_WARN([linker does not support runtime path to dynamic libraries])
+ AC_CACHE_CHECK([if linker supports -Wl,+b,], git_cv_ld_wl_b, [
+ SAVE_LDFLAGS="${LDFLAGS}"
+ LDFLAGS="${SAVE_LDFLAGS} -Wl,+b,/"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [git_cv_ld_wl_b=yes], [git_cv_ld_wl_b=no])
+ LDFLAGS="${SAVE_LDFLAGS}"
+ ])
+ if test "$git_cv_ld_wl_b" = "yes"; then
+ CC_LD_DYNPATH=-Wl,+b,
+ else
+ CC_LD_DYNPATH=
+ AC_MSG_WARN([linker does not support runtime path to dynamic libraries])
+ fi
fi
fi
fi