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