[omniORB] Mingw build patch

Al Slater al.slater at scluk.com
Fri Oct 1 13:43:55 BST 2004


Attached is a small patch to mingw.mk to build the shared libs with 
threading enabled.  This enables exception handling in threaded 
programs, dlls.


Without this omniNames crashes a lot, and other situations involving 
threads and exceptions could go wrong.

regards

-- 
Al Slater

Technical Director
Stanton Consultancy
+44 (0)1273 666607
-------------- next part --------------
Index: mingw.mk
===================================================================
RCS file: /cvsroot/omniorb/omni/mk/Attic/mingw.mk,v
retrieving revision 1.1.2.2
diff -b -c -r1.1.2.2 mingw.mk
*** mingw.mk	26 Jul 2004 13:02:55 -0000	1.1.2.2
--- mingw.mk	1 Oct 2004 11:30:43 -0000
***************
*** 234,240 ****
  version=$(SharedLibraryVersionStringTemplate); \
  set -x; \
  $(RM) $@; \
! $(CXXLINK) -shared  -Wl,--dll -o$$dllname \
  -Wl,--out-implib,$@ -Wl,--output-def,$$defname \
  -Wl,--enable-runtime-pseudo-reloc \
  $$extralinkoption $(IMPORT_LIBRARY_FLAGS) \
--- 234,240 ----
  version=$(SharedLibraryVersionStringTemplate); \
  set -x; \
  $(RM) $@; \
! $(CXXLINK) -shared -mthreads -Wl,-export-all -Wl,--dll -o$$dllname \
  -Wl,--out-implib,$@ -Wl,--output-def,$$defname \
  -Wl,--enable-runtime-pseudo-reloc \
  $$extralinkoption $(IMPORT_LIBRARY_FLAGS) \


More information about the omniORB-list mailing list