Add $PLT_CFLAGS to -fPIC for run_cc_link_tests
[deliverable/binutils-gdb.git] / ld / testsuite / ld-i386 / i386.exp
index a26cffd3abc94fea0ae2b7276eea102fa09ae3b6..0dbdd1e06e054f635920ac0bbec11d5b5d46ca67 100644 (file)
@@ -310,6 +310,9 @@ run_dump_test "pr17057"
 run_dump_test "pr17935-1"
 run_dump_test "pr17935-2"
 
+# Add $PLT_CFLAGS if PLT is expected.
+global PLT_CFLAGS
+
 # Must be Linux native with the C compiler
 if { [isnative]
      && [istarget "i?86-*-linux*"]
@@ -342,7 +345,7 @@ if { [isnative]
        [list \
            "Build libplt-main3.a" \
            "" \
-           "-fPIC" \
+           "-fPIC $PLT_CFLAGS" \
            { plt-main3.c } \
            {{readelf {-Wr} plt-main3.rd}} \
            "libplt-main3.a" \
@@ -350,7 +353,7 @@ if { [isnative]
        [list \
            "Build libplt-main4.a" \
            "" \
-           "-fPIC" \
+           "-fPIC $PLT_CFLAGS" \
            { plt-main4.c } \
            {{readelf {-Wr} plt-main4.rd}} \
            "libplt-main4.a" \
@@ -525,3 +528,4 @@ if { !([istarget "i?86-*-linux*"]
 
 # Linux only tests
 run_dump_test "pltgot-1"
+run_dump_test "pltgot-2"
This page took 0.024235 seconds and 4 git commands to generate.