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/common-src/src/gdbmedit/db2txt/Makefile.in

    r18224 r22058  
    3030COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
    3131
     32USE_GDBM = @USE_GDBM@
     33ifeq ($(USE_GDBM), 1)
     34GDBM_DEFINES = -DUSE_GDBM
     35else
     36GDBM_DEFINES =
     37endif
     38
     39USE_JDBM = @USE_JDBM@
     40ifeq ($(USE_JDBM), 1)
     41JDBM_DEFINES = -DUSE_JDBM
     42else
     43JDBM_DEFINES =
     44endif
     45
     46USE_SQLITE = @USE_SQLITE@
     47ifeq ($(USE_SQLITE), 1)
     48SQLITE_DEFINES = -DUSE_SQLITE
     49else
     50SQLITE_DEFINES =
     51endif
    3252
    3353CXX = @CXX@
    3454CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
    35 DEFS = @DEFS@
     55DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    3656GSDLOS = @gsdlos@
    3757INCLUDES = -I$(COMMON_PACKAGES_DIR)/gdbm/include -I$(COMMON_DIR)/src/lib
Note: See TracChangeset for help on using the changeset viewer.