]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nios2: Add #undef of MUSL_DYNAMIC_LINKER
authorChung-Lin Tang <cltang@codesourcery.com>
Thu, 8 Sep 2022 15:14:38 +0000 (23:14 +0800)
committerChung-Lin Tang <cltang@codesourcery.com>
Thu, 8 Sep 2022 15:14:38 +0000 (23:14 +0800)
Add #undef of MUSL_DYNAMIC_LINKER before #define, to satisfy build checks
when configured with --enable-werror-always.

gcc/ChangeLog:

* config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add #undef before #define.

gcc/config/nios2/linux.h

index f5dd813acad52c8b9cd8427b77a18124a48b8ea9..9e53dd657e418a081077aaac28cd880ac2d68cab 100644 (file)
@@ -30,6 +30,8 @@
 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
 
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1"
+
+#undef MUSL_DYNAMIC_LINKER
 #define MUSL_DYNAMIC_LINKER  "/lib/ld-musl-nios2.so.1"
 
 #undef LINK_SPEC