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/protocol/Makefile.in

    r21324 r22058  
    4040endif
    4141
     42USE_GDBM = @USE_GDBM@
     43ifeq ($(USE_GDBM), 1)
     44GDBM_DEFINES = -DUSE_GDBM
     45else
     46GDBM_DEFINES =
     47endif
     48
     49USE_JDBM = @USE_JDBM@
     50ifeq ($(USE_JDBM), 1)
     51JDBM_DEFINES = -DUSE_JDBM
     52else
     53JDBM_DEFINES =
     54endif
     55
     56USE_SQLITE = @USE_SQLITE@
     57ifeq ($(USE_SQLITE), 1)
     58SQLITE_DEFINES = -DUSE_SQLITE
     59else
     60SQLITE_DEFINES =
     61endif
     62
     63
    4264AR = ar
    4365CXX = @CXX@
    4466CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
    45 DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
     67DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    4668# Do NOT add the "recpt" directory here: the protocol should be independent of the receptionist!
    4769INCLUDES = -I. -I$(GSDL_DIR) -I$(COMMON_DIR)/src/lib -I$(COMMON_PACKAGES_DIR)/gdbm/include \
Note: See TracChangeset for help on using the changeset viewer.