# Expect script for ld-gc tests
-# Copyright 2008, 2009, 2010
+# Copyright 2008, 2009, 2010, 2012
# Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
if { [is_remote host] || [which $CC] != 0 } {
if { [istarget "*-*-linux*"]
+ || [istarget "*-*-nacl*"]
|| [istarget "*-*-gnu*"] } {
ld_compile "$CC -fPIC $CFLAGS $cflags" $srcdir/$subdir/pr11218-1.c tmpdir/pr11218-1.o
ld_simple_link $ld tmpdir/pr11218-1.so "-shared tmpdir/pr11218-1.o"