[ld, testsuite] Append $board_cflags in one more place in ld-unique/unique.exp
authorJiong Wang <jiong.wang@arm.com>
Tue, 31 Jan 2017 12:20:48 +0000 (12:20 +0000)
committerJiong Wang <jiong.wang@arm.com>
Wed, 1 Feb 2017 12:57:25 +0000 (12:57 +0000)
ld/
* testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
Append $board_cflags to link commands.

ld/ChangeLog
ld/testsuite/ld-unique/unique.exp

index 3845d258c995b138abdcef99e1c93bd0ef714d96..34fd3037ed00807f440dd38762bfbf5d20817ecb 100644 (file)
@@ -1,3 +1,8 @@
+2017-02-01  Jiong Wang  <jiong.wang@arm.com>
+
+       * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
+       Append $board_cflags to link commands.
+
 2017-02-01  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
 
        * testsuite/ld-scripts/print-memory-usage-1.l: Relax
index f06622f839b66d65257b8c084d643755cbee99de..61c070aa476d55e1763d708d03839d894bddf5bf 100644 (file)
@@ -197,7 +197,7 @@ if {![ld_link $ld "tmpdir/libunique_shared.so" "-shared tmpdir/unique_shared.o"]
 }
 
 # Create executable NOT containing unique symbol linked against library.
-if {![ld_link $CC "tmpdir/unique_shared_prog" "-Ltmpdir tmpdir/unique_empty.o -Wl,-Bdynamic,-rpath=./tmpdir -lunique_shared"] } {
+if {![ld_link "$CC $board_cflags" "tmpdir/unique_shared_prog" "-Ltmpdir tmpdir/unique_empty.o -Wl,-Bdynamic,-rpath=./tmpdir -lunique_shared"] } {
     fail "Could not link a dynamic executable"
     set fails [expr $fails + 1]
 }