Menu

#19 Building with MSYS2/MinGW-w64

v1.0 (example)
open
nobody
None
5
2020-10-27
2020-10-27
No

In order to build for Windows under the MSYS2 shell using the MinGW-w64 GCC compiler I encountered the following issues:
shared build failed with linker errors about missing -no-undefined which is required on Windows
shared build failed with linker errors about an unresolved symbal that should have been imported from libiconv
undefined reference css_parse
undefined references yylex/init_yylex/end_yylex

I was able to build anyway working around these issues like this:

INSTALLPREFIX=/usr/local
./configure --prefix=$INSTALLPREFIX &&
sed -i.bak -e "s/\(allow_undefined=\)yes/\1no/" libtool &&
make install-strip am_libcss_parser_pp_la_OBJECTS="parser_pp.lo parser.lo css_syntax.lo css_lex.lo" LIBS="-Wl,--as-needed -liconv" &&
echo Success

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.