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/indexers/mgpp/text/Makefile.in

    r20847 r22058  
    3838endif
    3939
     40USE_GDBM = @USE_GDBM@
     41ifeq ($(USE_GDBM), 1)
     42GDBM_DEFINES = -DUSE_GDBM
     43else
     44GDBM_DEFINES =
     45endif
     46
     47USE_JDBM = @USE_JDBM@
     48ifeq ($(USE_JDBM), 1)
     49JDBM_DEFINES = -DUSE_JDBM
     50else
     51JDBM_DEFINES =
     52endif
     53
     54USE_SQLITE = @USE_SQLITE@
     55ifeq ($(USE_SQLITE), 1)
     56SQLITE_DEFINES = -DUSE_SQLITE
     57else
     58SQLITE_DEFINES =
     59endif
    4060
    4161SHELL = /bin/sh
     
    5575CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -fPIC -DSILENT -DSHORT_SUFFIX $(AFFLAGS)
    5676CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -fPIC -DSILENT -DSHORT_SUFFIX $(AFFLAGS)
    57 DEFS = @DEFS@
     77DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    5878RANLIB = @RANLIB@
    5979INSTALL = @INSTALL@
Note: See TracChangeset for help on using the changeset viewer.