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

    r18445 r22058  
    1111transform = @program_transform_name@
    1212
     13USE_GDBM = @USE_GDBM@
     14ifeq ($(USE_GDBM), 1)
     15GDBM_DEFINES = -DUSE_GDBM
     16else
     17GDBM_DEFINES =
     18endif
     19
     20USE_JDBM = @USE_JDBM@
     21ifeq ($(USE_JDBM), 1)
     22JDBM_DEFINES = -DUSE_JDBM
     23else
     24JDBM_DEFINES =
     25endif
     26
     27USE_SQLITE = @USE_SQLITE@
     28ifeq ($(USE_SQLITE), 1)
     29SQLITE_DEFINES = -DUSE_SQLITE
     30else
     31SQLITE_DEFINES =
     32endif
     33
    1334AR = ar
    1435CC = @CC@
    1536CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -fpic -DSILENT -DSHORT_SUFFIX -DNZDL -DQUIET -DPARADOCNUM
    16 DEFS = @DEFS@
     37DEFS = @DEFS@ $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    1738RANLIB = @RANLIB@
    1839INSTALL = @INSTALL@
Note: See TracChangeset for help on using the changeset viewer.