mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] GCC 4.5 (was URL problems)


From: Tony Theodore
Subject: [Mingw-cross-env-list] GCC 4.5 (was URL problems)
Date: Thu, 29 Apr 2010 02:45:13 +1000

On 29 April 2010 00:19, Tony Theodore <address@hidden> wrote:

>> All in all, I'm fairly optimistic about switching over to GCC 4.5 with
>> MinGW. We could revert glib to the 2.4 release (since it's a time sink
>> - though interesting and worthwhile), and spend the time on the
>> openscengraph problem. The glib seems to be cross-compile/platform
>> dependent, whereas osg is more compiler/configure related and should
>> only need to fixed once.

I think the below tells osg to expect a failure running an exe in
cross compile mode.


diff -r bb06db3c8476 src/openscenegraph.mk
--- a/src/openscenegraph.mk     Wed Apr 28 09:51:35 2010 +0200
+++ b/src/openscenegraph.mk     Thu Apr 29 02:38:44 2010 +1000
@@ -28,6 +28,7 @@
         -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY           \
         -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY           \
         -DCMAKE_C_COMPILER='$(PREFIX)/bin/$(TARGET)-gcc'   \
+        -DCMAKE_CXX_COMPILER='$(PREFIX)/bin/$(TARGET)-g++' \
         -DCMAKE_INCLUDE_PATH='$(PREFIX)/$(TARGET)/include' \
         -DCMAKE_LIB_PATH='$(PREFIX)/$(TARGET)/lib'         \
         -DPKG_CONFIG_EXECUTABLE=$(TARGET)-pkg-config       \
@@ -35,6 +36,7 @@
         -DCMAKE_BUILD_TYPE=Release                         \
         -DDYNAMIC_OPENTHREADS=OFF                          \
         -DDYNAMIC_OPENSCENEGRAPH=OFF                       \
-        -DBUILD_OSG_APPLICATIONS=OFF
+        -DBUILD_OSG_APPLICATIONS=OFF                       \
+        -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1
     $(MAKE) -C '$(1)' -j '$(JOBS)' install
 endef




reply via email to

[Prev in Thread] Current Thread [Next in Thread]