<<new small patch from libo 
https://github.com/LibreOffice/core/commit/a799d7c9a66464f33bd8ee42d535e29a976d64ae
Paul please apply if consider as necessarily>>

There will have been a reason why that particular flag was used.... 

The change for nodefaultlibs was added to fix a problem with gcc 4.1 by the 
look of it.
Since we are no longer using gcc 4.1, since MacOS 10.8 (currently used to build 
2.x)
is now running gcc 4.2, its probably OK to remove it.

See original checkin below:

Modified Files:
      Tag: B2_5_Release
        darwin.defaults 
Log Message:
Fixed darwin built with gcc4.1

Index: darwin.defaults
===================================================================
RCS file: /cvsroot/firebird/firebird2/builds/posix/darwin.defaults,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -b -U3 -r1.4 -r1.4.2.1
--- darwin.defaults     11 Sep 2009 10:49:30 -0000      1.4
+++ darwin.defaults     12 Oct 2009 13:41:00 -0000      1.4.2.1
@@ -55,8 +55,15 @@
 
 LINK_TRACE = $(LIB_LINK) $(LIB_BUNDLE_OPTIONS)
 
-LINK_CLIENT = $(CLIENTLIB_LINK) $(LINK_FIREBIRD_CLIENT_SYMBOLS) 
$(LIB_LINK_OPTIONS) $(LIB_LINK_IMPLIB)\
+LINK_CLIENT = $(LIB_LINK) -nodefaultlibs $(LINK_FIREBIRD_CLIENT_SYMBOLS) 
$(LIB_LINK_OPTIONS) $(LIB_LINK_IMPLIB)\
  $(LIB_CLIENT_LINK_OPTIONS) $(LIB_LINK_SONAME)
 
+ifeq (@VOID_PTR_SIZE@,8)
+GCCS=-lgcc_s.10.5
+else
+GCCS=-lgcc_s.10.4
+endif
+STATIC_CXX_SUPPORT = -lsupc++ $(GCCS) -lgcc_eh -lSystem
+
 LINK_EMBED = $(LIB_LINK) $(LINK_FIREBIRD_EMBED_SYMBOLS) $(LIB_LINK_OPTIONS)\
  $(LIB_EMBED_LINK_OPTIONS) $(LIB_LINK_SONAME)

Paul


------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to