Fix building of cross compiler (PR target/81753).
authorMartin Liska <mliska@suse.cz>
Wed, 16 Aug 2017 07:51:55 +0000 (09:51 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 16 Aug 2017 07:51:55 +0000 (07:51 +0000)
2017-08-16  Martin Liska  <mliska@suse.cz>

PR target/81753
* config.gcc: Respect previously set extra_objs in case
of darwin target.

From-SVN: r251118

gcc/ChangeLog
gcc/config.gcc

index d86b59f36716ece915a23d2f0fb2e635d8dc4514..cea00bef1fb25e7f1bd6a32b1d40f27d72e2d98c 100644 (file)
@@ -1,3 +1,9 @@
+2017-08-16  Martin Liska  <mliska@suse.cz>
+
+       PR target/81753
+       * config.gcc: Respect previously set extra_objs in case
+       of darwin target.
+
 2017-08-16  Richard Sandiford  <richard.sandiford@linaro.org>
 
        PR tree-optimization/81835
index 60f3d0ba1410db92463bc9216e36fa481c06c38c..7e0244331602738f04fb58aa6285954eb31b0a5f 100644 (file)
@@ -653,7 +653,7 @@ case ${target} in
   cxx_target_objs="${cxx_target_objs} darwin-c.o"
   fortran_target_objs="darwin-f.o"
   target_has_targetcm=yes
-  extra_objs="darwin.o"
+  extra_objs="${extra_objs} darwin.o"
   extra_gcc_objs="darwin-driver.o"
   default_use_cxa_atexit=yes
   use_gcc_stdint=wrap