Boost logo

Boost Users :

From: frederic.bron_at_[hidden]
Date: 2007-06-28 09:28:19


I have a similar problem: building boost for win32 from cygwin (i.e. with -mno-cygwin flag).
What I did is to compile bjam for gcc-nocygwin toolset (fine!) and use this bjam to build boost but the flag "-mno-cygwin" is not given to g++.
I tried to add "cflags=-mno-cygwin cxxflags=-mno-cygwin linkflags=-mno-cygwin" on the bjam command line but g++ is still invoked without -mno-cygwin. The same happen with toolset gcc and gcc-nocygwin.

Here is an extract of the output of bjam -d2:

gcc.compile.c++ bin.v2\libs\wave\build\gcc-3.4.4\release\link-static\instantiate_cpp_exprgrammar.o

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2\libs\wave\build\gcc-3.4.4
\release\link-static\instantiate_cpp_exprgrammar.o" "libs\wave\src\instantiate_cpp_exprgrammar.cpp"

What is the solution? How can I add the flag "-mno-cygwin" to gcc, g++ and the linker? I have spent so much time to try to find a solution that I thinking of giving up the idea to use the boost
library.

F. Bron

                                                                                                                                                                               
                      rodolfo_at_[hidden]
                      Envoyé par : Pour : boost-users_at_[hidden]
                      boost-users-bounces_at_list cc : (ccc : Frederic Bron/Alcan)
                      s.boost.org Objet : [Boost-users] Cross-compiling boost for win32 on linux
                                                                                                                                                                               
                                                                                                                                                                               
                      28/06/2007 14:34
                      Veuillez répondre à
                      boost-users
                                                                                                                                                                               

Hi,
I used to be able to cross-compile boost on linux for win32 with
boost.build v1 without problems, but now with v2 I cannot find the
mingw toolset. It seems that now we can use gcc toolset but with a
mingw flavor. So, where can I set this flavor? Everything I do makes
bjam use plain g++ (for building to run on linux),
not mingw32-g++ (run on win32).

Regards,
Rodolfo Lima.
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.

Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net