git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] configure: Detect linking style for HP aCC on HP-UX

From
Osipov, Michael <michael.osipov@siemens.com>
Date
Jun 7, 2019, 14:51 UTC
Message-ID
<c12ec5ff-87c9-a6d0-e9f6-6d7e1cf343c5@siemens.com>
In-Reply-To
<20190516093412.14795-1-avarab@gmail.com>
Am 2019-05-16 um 11:34 schrieb Ævar Arnfjörð Bjarmason:
Show 42 quoted lines
> From: Michael Osipov <michael.osipov@siemens.com>
> 
> 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>
> ---
> 
> I took the liberty of slightly amending the commit message.
> 
>   configure.ac | 14 ++++++++++++--
>   1 file changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index be3b55f1cc..a43b476402 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
> 

I can see that this one has not yet been committed nor my PR has been pulled.

Any chances to get this into master?
Michael
Previous: Jeff KingNext: Junio C Hamano
Message 18 of 19 in “Improving HP-UX support”
  1. Improving HP-UX supportOsipov, Michael, May 8, 2019
  2. Ævar Arnfjörð BjarmasonMay 9, 2019
  3. Osipov, MichaelMay 9, 2019
  4. sha1dc: update from upstreamÆvar Arnfjörð Bjarmason, May 13, 2019
  5. Osipov, MichaelMay 14, 2019
  6. Ævar Arnfjörð BjarmasonMay 15, 2019
  7. Osipov, MichaelMay 16, 2019
  8. Ævar Arnfjörð BjarmasonMay 16, 2019
  9. Osipov, MichaelMay 16, 2019
  10. configure: Detect linking style for HP aCC on HP-UXÆvar Arnfjörð Bjarmason, May 16, 2019
  11. Makefile: remove the NO_R_TO_GCC_LINKER flagÆvar Arnfjörð Bjarmason, May 16, 2019
  12. Jeff KingMay 16, 2019
  13. Junio C HamanoMay 16, 2019
  14. Jeff KingMay 17, 2019
  15. Makefile: remove the NO_R_TO_GCC_LINKER flagÆvar Arnfjörð Bjarmason, May 17, 2019
  16. Junio C HamanoMay 19, 2019
  17. Jeff KingMay 19, 2019
  18. Osipov, MichaelJun 7, 2019
  19. Junio C HamanoJun 7, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.