[36141] in Kerberos

home help back first fref pref prev next nref lref last post

Cannot swap/change linker on HP-UX

daemon@ATHENA.MIT.EDU (Michael Osipov)
Thu May 22 16:04:35 2014

Message-ID: <537E5846.3090707@gmx.net>
Date: Thu, 22 May 2014 22:04:22 +0200
From: Michael Osipov <1983-01-06@gmx.net>
MIME-Version: 1.0
To: kerberos@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

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
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post