Hi,

I would like someone from MinGW to look at, evaluate and suggest how to bring the MinGW cross compile on Linux into a normal linux build,

without the need to create a special build script like mine attached to this mail.

My script managed to achieve a successful build with 2 passes with the following:

1. Fixed $MINGW_DIR/$OBJDIR/$TARGET/libstdc++-v3/include/$TARGET/bits/c++config.h to remove

"#define _GLIBCXX_HAVE_SYS_SDT_H 1" which is not appropriate for MinGW.

2. Fixed $MINGW_DIR/$ OBJDIR/$TARGET/libstdc++-v3/src/Makefile to change the order of libraries

"-L$PREFIX/$TARGET/lib -L $PREFIX/mingw/lib" -> "-L$PREFIX/mingw/lib -L$PREFIX/$TARGET/lib"

3. Fixed $MINGW_DIR/$OBJDIR/$TARGET/libstdc++-v3/libtool to change the order of libraries

"-L$PREFIX/$TARGET/lib -L$PREFIX/mingw/lib" -> "-L$PREFIX/mingw/lib -L$PREFIX/$TARGET/lib"


Vladimir Koković, DP senior(70),

Serbia, Belgrade, 27.November 2020

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to