This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] benchtests: Link against objects in build directory
- From: Andreas Schwab <schwab at suse dot de>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 15 Apr 2014 09:47:33 +0200
- Subject: Re: [PATCH] benchtests: Link against objects in build directory
- Authentication-results: sourceware.org; auth=none
- References: <20140415070305 dot GA8521 at spoyarek dot pnq dot redhat dot com>
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."