This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch crosstool-NG hg - Canadian cross, mingw host?.


On 27 Oct 2010, bpringle@sympatico.ca wrote:

> I have the same issue as this poster,

> http://permalink.gmane.org/gmane.comp.gcc.cross-compiling/12221

> It looks like passing '-lstdc++' as the last library to libtool (or
> whatever this beast is) solves the C++ unresolved issues.  I perused
> the configure of cloog and it has the option "--with-host-libstdcxx=".
> I set this in my cloog.sh and use '-lstdc++' as the value.  It seems
> that the '-lstdc++' ends up as the last library and the CLooG phase
> passes.  Also, it seems that PPL does need the C++ libraries given
> that CLooG configure has this specific option.  The 'hg' version of
> cloog.sh seems similar to me.

bpringlemeir@ps-bpringlemeir1:~/crosstool-NG/crosstool-ng$ ct-ng version
This is crosstool-NG version hg_default@2159_c27380b72046

Copyright (C) 2008  Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

bpringlemeir@ps-bpringlemeir1:~/crosstool-NG/crosstool-ng$ hg diff
diff -r c27380b72046 scripts/build/companion_libs/cloog.sh
--- a/scripts/build/companion_libs/cloog.sh     Sat Oct 23 23:29:46 2010 +0200
+++ b/scripts/build/companion_libs/cloog.sh     Thu Oct 28 10:40:41 2010 -0400
@@ -55,7 +55,8 @@
         cloog_opts+=( --enable-shared --disable-static )
     else
         cloog_opts+=( --disable-shared --enable-static )
-        cloog_LDFLAGS='-lstdc++ -lm'
+        cloog_opts+=( --with-host-libstdcxx='-lstdc++' )
+        cloog_LDFLAGS='-lm'
     fi
 
     CFLAGS="${CT_CFLAGS_FOR_HOST}"              \


I have attached my config.  I am not sure if all versions of CLooG
offer this 'with-host-libstdcxxx' option, so there might need to be
further conditions.  However, this seems to solve the PPLs need to
have C++ library linked with it.

My final compile issues seem to be related to the 'fenv.h' issues that
are being discussed.  Or I am new to cross tools and might have made a
config mistake.

Thanks,
Bill Pringlemeir.

Attachment: config.mingw-cross
Description: build x64 linux, host mingw, target arm linux uclibc(v4.4.4).

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]