[RS6000] Fix non-linux powerpc breakage
authorAlan Modra <amodra@gmail.com>
Thu, 20 Dec 2018 01:08:14 +0000 (11:38 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Thu, 20 Dec 2018 01:08:14 +0000 (11:38 +1030)
svn r266496, git commit ab6b1bb456f broke non-linux powerpc builds
due to GNU_USER_DYNAMIC_LINKER being undefined.

* config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Define.

From-SVN: r267292

gcc/ChangeLog
gcc/config/rs6000/sysv4.h

index fcc7bb0..b1eed3b 100644 (file)
@@ -1,3 +1,7 @@
+2018-12-20  Alan Modra  <amodra@gmail.com>
+
+       * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Define.
+
 2018-12-19  Andreas Tobler  <andreast@gcc.gnu.org>
 
        * config.gcc: Enable TARGET_DEFAULT_ASYNC_UNWIND_TABLES on
index 0d84f4f..598da25 100644 (file)
@@ -761,6 +761,10 @@ GNU_USER_TARGET_CC1_SPEC
 #define MUSL_DYNAMIC_LINKER \
   "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
 
+#ifndef GNU_USER_DYNAMIC_LINKER
+#define GNU_USER_DYNAMIC_LINKER GLIBC_DYNAMIC_LINKER
+#endif
+
 #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
   %{rdynamic:-export-dynamic} \
   -dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}"