Commit c5d70b1a authored by knielsen@ymer.(none)'s avatar knielsen@ymer.(none)
Browse files

BUG#16282

Build gcc.o as a small library, instead of passing .cpp sources to the
linker command (causes problems with parallel make on Solaris).

This fix is for 4.1. In 5.0 and up a different fix is used.
parent 130c861f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,6 +7,6 @@ ndbapiincludedir = "$(pkgincludedir)/ndb/ndbapi"
mgmapiincludedir = "$(pkgincludedir)/ndb/mgmapi"

INCLUDES = $(INCLUDES_LOC)
LDADD = $(top_srcdir)/ndb/src/common/portlib/gcc.cpp $(LDADD_LOC)
LDADD = $(LDADD_LOC) -L$(top_srcdir)/ndb/src/common/portlib -lmygcc
DEFS = @DEFS@ @NDB_DEFS@ $(DEFS_LOC) $(NDB_EXTRA_FLAGS)
NDB_CXXFLAGS=@ndb_cxxflags_fix@ $(NDB_CXXFLAGS_LOC) 
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ LDADD += \
         $(top_builddir)/ndb/src/libndbclient.la \
         $(top_builddir)/dbug/libdbug.a \
         $(top_builddir)/mysys/libmysys.a \
         $(top_builddir)/strings/libmystrings.a @NDB_SCI_LIBS@
         $(top_builddir)/strings/libmystrings.a @NDB_SCI_LIBS@ -lmygcc

INCLUDES += -I$(srcdir) -I$(top_srcdir)/include \
	-I$(top_srcdir)/ndb/include \
+2 −1
Original line number Diff line number Diff line
noinst_HEADERS = gcc.cpp
noinst_LIBRARIES = libmygcc.a
libmygcc_a_SOURCES = gcc.cpp

noinst_LTLIBRARIES = libportlib.la

+2 −1
Original line number Diff line number Diff line
@@ -53,7 +53,8 @@ LDADD += \
              $(top_builddir)/ndb/src/common/util/libgeneral.la  \
         $(top_builddir)/dbug/libdbug.a \
         $(top_builddir)/mysys/libmysys.a \
         $(top_builddir)/strings/libmystrings.a @NDB_SCI_LIBS@
         $(top_builddir)/strings/libmystrings.a @NDB_SCI_LIBS@ -lmygcc


# Don't update the files from bitkeeper
%::SCCS/s.%