Skip to content
Snippets Groups Projects
Commit 08ef17c7 authored by Costas Argyris's avatar Costas Argyris Committed by Jonathan Yong
Browse files

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: default avatarJonathan Yong <10walls@gmail.com>
parent ec92be4a
No related branches found
No related tags found
No related merge requests found
...@@ -53,4 +53,4 @@ utf8-mingw32.o : utf8rc-mingw32.o sym-mingw32.o ...@@ -53,4 +53,4 @@ utf8-mingw32.o : utf8rc-mingw32.o sym-mingw32.o
# This is expected because the resource object is not supposed # This is expected because the resource object is not supposed
# to have any symbols, it just has to be linked into the # to have any symbols, it just has to be linked into the
# executable in order for Windows to use the utf8 code page. # 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment