Cannot swap/change linker on HP-UX

Michael Osipov 1983-01-06 at gmx.net
Thu May 22 16:04:22 EDT 2014


Hi,

I am trying to compile version 1.12.1 on HP-UX and are not able to 
swap/change the default linker.

I have set LD="ld +n" but it does not get picked up by the configure 
script. (Yes, I know there is LDFLAGS for "+n" but that's not the point.)

Having looked at shlib.conf, I noticed this:

~/krb5-1.12.1/src/config$ grep -Rn "'ld " .
./shlib.conf:137:               LDCOMBINE='ld -b +h 
$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT) -c hpux10.exports'
./shlib.conf:165:               LDCOMBINE='ld -n32 -shared 
-ignore_unresolved -update_registry $(BUILDTOP)/so_locations -soname 
$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT)'
./shlib.conf:167:               LDCOMBINE='ld -shared -ignore_unresolved 
-update_registry $(BUILDTOP)/so_locations -soname 
$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT)'
./shlib.conf:276:       LDCOMBINE='ld -shared -soname 
$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT)'
./shlib.conf:323:       LDCOMBINE='ld -Bshareable'
./shlib.conf:337:       LDCOMBINE='ld -Bshareable'
./shlib.conf:443:       #LDCOMBINE='ld -shared -h 
$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT)'
./shlib.conf:453:       LDCOMBINE='ld -Bshareable'

So, $(LD) is never used here, my case is in line 137 for HP-UX. Those 
lines have to use $(LD) instead of hardcoded ld binary.

Michael


More information about the Kerberos mailing list