Ignore:
Timestamp:
2010-05-06T21:23:54+12:00 (14 years ago)
Author:
ak19
Message:

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/oaiservr/Makefile.in

    r21324 r22058  
    6262endif
    6363
     64USE_GDBM = @USE_GDBM@
     65ifeq ($(USE_GDBM), 1)
     66GDBM_DEFINES = -DUSE_GDBM
     67else
     68GDBM_DEFINES =
     69endif
     70
     71USE_JDBM = @USE_JDBM@
     72ifeq ($(USE_JDBM), 1)
     73JDBM_DEFINES = -DUSE_JDBM
     74else
     75JDBM_DEFINES =
     76endif
    6477
    6578USE_SQLITE = @USE_SQLITE@
    6679ifeq ($(USE_SQLITE), 1)
     80SQLITE_DEFINES = -DUSE_SQLITE
    6781SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/sqlite/lib/libsqlite3.a -ldl -lpthread
    6882else
    6983SQLITE_LIBS =
     84SQLITE_DEFINES =
    7085endif
    7186
     
    7590CXX = @CXX@
    7691CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
     92DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    7793INCLUDES = -I$(COMMON_DIR)/src/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(RECPT_DIR) $(MGPP_INCLUDES)
    7894LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
     
    8298
    8399
    84 CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(INCLUDES)
     100CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
    85101CXXLINK = $(CXX) $(LDFLAGS) -o $@
    86102
Note: See TracChangeset for help on using the changeset viewer.