public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6842] Fix native MSYS2 build failure [PR108865, PR109188]
@ 2023-03-24  2:36 Jonathan Yong
  0 siblings, 0 replies; only message in thread
From: Jonathan Yong @ 2023-03-24  2:36 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:08ef17c75777ef9e4e7ead132ccd7a6d03ae6020

commit r13-6842-g08ef17c75777ef9e4e7ead132ccd7a6d03ae6020
Author: Costas Argyris <costas.argyris@gmail.com>
Date:   Wed Mar 22 10:28:08 2023 +0000

    Fix native MSYS2 build failure [PR108865, PR109188]
    
    Don't cause an error if the symbol is not found.
    
    When building natively as an MSYS2 package, some
    executables are borrowing the $(COMPILERS) flags
    and --require-defined=HOST_EXTRA_OBJS_SYMBOL is
    causing them to fail.
    
    These executables don't need that symbol, so make
    it optional such that they don't error out.
    
    The compilers will still look for it (and find it)
    with the desired effect of getting UTF-8 support.
    
            PR/PR108865
    
    gcc/ChangeLog:
    
            * config/i386/x-mingw32-utf8: Make HOST_EXTRA_OBJS_SYMBOL
            optional.
    
    Signed-off-by: Jonathan Yong <10walls@gmail.com>

Diff:
---
 gcc/config/i386/x-mingw32-utf8 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/i386/x-mingw32-utf8 b/gcc/config/i386/x-mingw32-utf8
index 6161dc23547..9de963d7965 100644
--- a/gcc/config/i386/x-mingw32-utf8
+++ b/gcc/config/i386/x-mingw32-utf8
@@ -53,4 +53,4 @@ utf8-mingw32.o : utf8rc-mingw32.o sym-mingw32.o
 # This is expected because the resource object is not supposed
 # to have any symbols, it just has to be linked into the
 # executable in order for Windows to use the utf8 code page.
-$(COMPILERS) : override LDFLAGS += -Wl,--require-defined=HOST_EXTRA_OBJS_SYMBOL
+$(COMPILERS) : override LDFLAGS += -Wl,--undefined=HOST_EXTRA_OBJS_SYMBOL

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-24  2:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-24  2:36 [gcc r13-6842] Fix native MSYS2 build failure [PR108865, PR109188] Jonathan Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).