>Unexpectedly the environment variable which needs to be passed is >$LDSHARED and not $LD. Otherwise Python may find the build `ld` instead >of the host `ld`. > >Replace $(LDFLAGS) with $(SHLIB_LDFLAGS) as Python needs shared objects >it can load at runtime, not executables. > >This uses $(CC) instead of $(LD) since Python distutils appends $CFLAGS >to $LDFLAGS which breaks many linkers. > >Signed-off-by: Elliott Mitchell <ehem+xen@xxxxxxx>
Tested-by: Mark Pryor <pryorm09@xxxxxxxx>
