Skip to content

Instantly share code, notes, and snippets.

@tpimh
Created January 8, 2017 17:47
Show Gist options
  • Save tpimh/69da585fe1019fa58088cb2aca2ab1dc to your computer and use it in GitHub Desktop.
Save tpimh/69da585fe1019fa58088cb2aca2ab1dc to your computer and use it in GitHub Desktop.
diff --git a/configure b/configure
index c2db298..02a39bd 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_TRY -nostdlib -shared "$2" "$tmpc" >/dev/null 2>&1 ; then
printf "yes\n"
eval "$1=\"\${$1} \$2\""
eval "$1=\${$1# }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment