bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loadable builtins on HP-UX


From: Greg Wooledge
Subject: Re: loadable builtins on HP-UX
Date: Wed, 4 Nov 2015 11:58:03 -0500
User-agent: Mutt/1.4.2.3i

On Wed, Nov 04, 2015 at 11:29:37AM -0500, Chet Ramey wrote:
> Change the hpux11*-*gcc* stanza in support/shobj-conf to specify the
> right options.  I'm guessing you'll need to change the assignment to
> SHOBJ_LDFLAGS.  Once you have something that works, send me diffs and
> I'll apply them.

Err... this modifies examples/loadables/Makefile but the changes need
to end up in the top-level Makefile, where bash itself is linked.

On Linux, the -rdynamic option ends up in LOCAL_LDFLAGS, so I guess
that's where it should end up on other platforms as well.  This
doesn't come from support/shobj-conf but rather from configure.ac
(and then configure).

*** bash-4.4-beta-orig/configure.ac     Wed Sep 16 16:18:14 2015
--- bash-4.4-beta/configure.ac  Wed Nov  4 11:51:34 2015
***************
*** 1112,1117 ****
--- 1112,1118 ----
  aix4.2*-*gcc*)        LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
  aix4.2*)      LOCAL_LDFLAGS="-bexpall -brtl" ;;
  bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;;    # allow dynamic loading, like 
Linux
+ hpux11*-*gcc*)        LOCAL_LDFLAGS="-Wl,-E" ;;       # allow dynamic loading
  esac
  
  dnl FreeBSD-3.x can have either a.out or ELF



reply via email to

[Prev in Thread] Current Thread [Next in Thread]