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

    r22046 r22058  
    8181endif
    8282
    83 # Currently not configurable, and always on
    84 USE_GDBM = 1
     83USE_GDBM = @USE_GDBM@
    8584ifeq ($(USE_GDBM), 1)
    8685GDBM_DEFINES = -DUSE_GDBM
     
    8988GDBM_DEFINES =
    9089GDBM_INCLUDES =
     90endif
     91
     92USE_JDBM = @USE_JDBM@
     93ifeq ($(USE_JDBM), 1)
     94JDBM_DEFINES = -DUSE_JDBM
     95else
     96JDBM_DEFINES =
    9197endif
    9298
     
    95101SQLITE_DEFINES = -DUSE_SQLITE
    96102SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/sqlite/lib/libsqlite3.a -ldl -lpthread
     103SQL_SOURCES = sqlqueryaction.cpp
     104SQL_OBJECTS = sqlqueryaction.o
    97105else
    98106SQLITE_DEFINES =
    99107SQLITE_LIBS =
    100 endif
    101 
    102 ifeq ($(USE_SQLITE), 1)
    103 SQL_SOURCES = sqlqueryaction.cpp
    104 SQL_OBJECTS = sqlqueryaction.o
    105 else
    106108SQL_SOURCES =
    107109SQL_OBJECTS =
     
    146148CXX = @CXX@
    147149CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
    148 DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H $(FASTCGI_DEFS) $(GDBM_DEFINES) $(SQLITE_DEFINES) $(Z3950_DEFS)
     150DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H $(FASTCGI_DEFS) $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES) $(Z3950_DEFS)
    149151INCLUDES = -I. -I$(GSDL_DIR) -I$(COMMON_DIR)/src/lib \
    150152        -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) \
Note: See TracChangeset for help on using the changeset viewer.