cool... I'll try that! a question... the ilmbase configure script if figuring all that out by itself... I'm wondering if there's a default mechanism that a configure script can use to query gcc in order to obtain those options... if so, is there a way to change the default options using an environment variable to remove booth .o and -nostdlib options? this way I can avoid patching the standard configure script...
-H On Mon, May 31, 2010 at 2:06 AM, JonY <[email protected]> wrote: > On 5/31/2010 16:11, Hradec wrote: > >> thanks for the idea... just tried and now I got multiple definitions: >> >> i686-w64-mingw32-g++ >> >> -I/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/OIIO/externals/pthreads/build/GC_x86_4.6.0_20100528/include/ >> >> -L/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/OIIO/externals/pthreads/build/GC_x86_4.6.0_20100528/lib/ >> -I./src/include -DWINAPI=__stdcall -D__MINGW32__ -D_WIN32 -DMINGW >> -DHAVE_STRUCT_TIMESPEC >> >> -I/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/OIIO/externals/dist/mingw/include/zlib-1.2.3 >> >> -L/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/OIIO/externals/dist/mingw/lib/zlib-1.2.3 >> -shared >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/dllcrt2.o >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/crtbegin.o >> .libs/half.o -Wl,--rpath >> >> -Wl,/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/ >> -Wl,--rpath >> >> -Wl,/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/ >> >> -L/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/OIIO/externals/pthreads/build/GC_x86_4.6.0_20100528/lib/ >> >> -L/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/OIIO/externals/dist/mingw/lib/zlib-1.2.3 >> >> -L/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0 >> >> -L/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc >> >> -L/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib >> >> -L/Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib//libstdc++.dll.a >> -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc_s -lgcc >> -lmoldname >> -lmingwex -lmsvcrt >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/crtend.o >> -Wl,-soname -Wl,libHalf.so.6 -o .libs/libHalf.so.6.0.0 >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/dllcrt2.o: >> In function `_crt_i...@12': >> >> /Users/jchesney/mingw-w64-buildslave/darwin-x86-x86/build/build/mingw/obj/../../../build/mingw/mingw-w64-crt/crt/crtdll.c:76: >> multiple definition of `__crt_i...@12' >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/dllcrt2.o:/Users/jchesney/mingw-w64-buildslave/darwin-x86-x86/build/build/mingw/obj/../../../build/mingw/mingw-w64-crt/crt/crtdll.c:76: >> first defined here >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/dllcrt2.o: >> In function `dllmaincrtstar...@12': >> >> /Users/jchesney/mingw-w64-buildslave/darwin-x86-x86/build/build/mingw/obj/../../../build/mingw/mingw-w64-crt/crt/crtdll.c:159: >> multiple definition of `_dllmaincrtstar...@12' >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/dllcrt2.o:/Users/jchesney/mingw-w64-buildslave/darwin-x86-x86/build/build/mingw/obj/../../../build/mingw/mingw-w64-crt/crt/crtdll.c:159: >> first defined here >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/dllcrt2.o:crtdll.c:(.CRT$XIAA+0x0): >> multiple definition of `_pcinit' >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/../../../../i686-w64-mingw32/lib/../lib/dllcrt2.o:crtdll.c:(.CRT$XIAA+0x0): >> first defined here >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/crtbegin.o:cygming-crtbegin.c:(.text+0x0): >> multiple definition of `___gcc_register_frame' >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/crtbegin.o:cygming-crtbegin.c:(.text+0x0): >> first defined here >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/crtbegin.o:cygming-crtbegin.c:(.text+0x50): >> multiple definition of `___gcc_deregister_frame' >> >> /Volumes/Data/Users/hradec/dev/svn/cortex4all/trunk/compilers/darwin.mingw32.4.6.0_20100528/bin/../lib/gcc/i686-w64-mingw32/4.6.0/crtbegin.o:cygming-crtbegin.c:(.text+0x50): >> first defined here >> collect2: ld returned 1 exit status >> make[3]: *** [libHalf.la] Error 1 >> make[2]: *** [install] Error 2 >> make[1]: *** [install-recursive] Error 1 >> >> >> So, I suppose I need to remove something now but not sure what... before I >> start the "try and error" process, any thoughts about what to remove? >> >> again, thanks a lot the so fast reply! really appreciate! >> >> -H >> > > Hi, > > libtool is being difficult sometimes, try removing all the .o files from > the libtool link command, let gcc link in all the object files with the > -nostdlib option removed. > -- Hradec
------------------------------------------------------------------------------
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
