Hi Segher,
On 8/4/21 5:29 PM, Segher Boessenkool wrote:
On Thu, Jul 29, 2021 at 08:30:48AM -0500, Bill Schmidt wrote:
+rs6000-gen-builtins: rs6000-gen-builtins.o rbtree.o
+ $(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ \
+ $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS)
I wonder what the difference is between BUILD_LINKERFLAGS and
BUILD_LDFLAGS? Do you have any idea?
I couldn't find evidence that BUILD_LINKERFLAGS ever has anything that
BUILD_LDFLAGS doesn't, but I put that down to my ignorance of the
cobwebbed corners of the build system. There is probably some configure
magic that can set it, and I suspect it has something to do with cross
builds; but it might also just be a leftover artifact. I decided I
should use the same build rule as the other gen- programs to make sure
cross builds work as expected. Certainly open to better ideas if you
have them!
Thanks,
Bill