Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11839

Re: loadable builtins on HP-UX

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: loadable builtins on HP-UX
Date 2015-11-04 11:58 -0500
Message-ID <mailman.1704.1446656291.7904.bug-bash@gnu.org> (permalink)
References <20151103214551.GI27325@eeg.ccf.org> <56394274.9050607@case.edu> <20151104050956.GW5154@vapier.lan> <20151104140444.GK27325@eeg.ccf.org> <563A3271.2060002@case.edu>

Show all headers | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: loadable builtins on HP-UX Greg Wooledge <wooledg@eeg.ccf.org> - 2015-11-04 11:58 -0500

csiph-web