[PATCH] benchtests: Link against objects in build directory
Andreas Schwab
schwab@suse.de
Tue Apr 15 07:47:00 GMT 2014
Siddhesh Poyarekar <siddhesh@redhat.com> writes:
> +LDLIBS-bench-acos = $(objpfx)$(..)math/libm.so
This should be $(common-objpfx)math/libm.so or
$(common-objpfx)math/libm.a, depending on $(build-shared). Also, you
shouldn't use LDLIBS for built libraries, instead add it to the
dependency list of the binaries, where $(+link) will pick it up.
See the use of link-libm in stdlib/Makefile, for example.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list