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

    r20847 r22058  
    2222endif
    2323
     24USE_GDBM = @USE_GDBM@
     25ifeq ($(USE_GDBM), 1)
     26GDBM_DEFINES = -DUSE_GDBM
     27else
     28GDBM_DEFINES =
     29endif
     30
     31USE_JDBM = @USE_JDBM@
     32ifeq ($(USE_JDBM), 1)
     33JDBM_DEFINES = -DUSE_JDBM
     34else
     35JDBM_DEFINES =
     36endif
     37
     38USE_SQLITE = @USE_SQLITE@
     39ifeq ($(USE_SQLITE), 1)
     40SQLITE_DEFINES = -DUSE_SQLITE
     41else
     42SQLITE_DEFINES =
     43endif
    2444
    2545
     
    2949CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -fPIC -ansi -DSILENT -DSHORT_SUFFIX
    3050CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -fPIC -DSILENT -DSHORT_SUFFIX
    31 DEFS = @DEFS@
     51DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    3252RANLIB = @RANLIB@
    3353INSTALL = @INSTALL@
Note: See TracChangeset for help on using the changeset viewer.