mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] Use LDFLAGS when testing linker flags
@ 2017-12-07 16:03 Nicholas Wilson
  2017-12-15  4:34 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Wilson @ 2017-12-07 16:03 UTC (permalink / raw)
  To: musl

Hi,

This is another patch for the WebAssembly build.

In Wasm, we currently need to pass some extra flags to the linker, and LDFLAGS would seem to be a good way to do this.

The patch below tests the linker by passing LDFLAGS on the link line. This ought to be a safe change to make?

Thanks,
Nick

=======
commit a951daab68b4b6ee6f46278f02df279188559b89
Author: Nicholas Wilson <nicholas.wilson@realvnc.com>
Date:   Thu Dec 7 15:42:58 2017 +0000

    [Wasm] Use LDFLAGS when testing linker

diff --git a/configure b/configure
index f320660d..519d31fa 100755
--- a/configure
+++ b/configure
@@ -98,7 +98,7 @@ fi
 tryldflag () {
 printf "checking whether linker accepts %s... " "$2"
 echo "typedef int x;" > "$tmpc"
-if $CC $LDFLAGS_TRY -nostdlib -shared "$2" -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
+if $CC $LDFLAGS $LDFLAGS_TRY -nostdlib -shared "$2" -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
 printf "yes\n"
 eval "$1=\"\${$1} \$2\""
 eval "$1=\${$1# }"




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-15 12:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-07 16:03 [PATCH] Use LDFLAGS when testing linker flags Nicholas Wilson
2017-12-15  4:34 ` Rich Felker
2017-12-15 12:42   ` Nicholas Wilson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).