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

    r21361 r22058  
    6262endif
    6363
     64USE_GDBM = @USE_GDBM@
     65ifeq ($(USE_GDBM), 1)
     66GDBM_DEFINES = -DUSE_GDBM
     67else
     68GDBM_DEFINES =
     69endif
     70
     71USE_JDBM = @USE_JDBM@
     72ifeq ($(USE_JDBM), 1)
     73JDBM_DEFINES = -DUSE_JDBM
     74else
     75JDBM_DEFINES =
     76endif
    6477
    6578USE_SQLITE = @USE_SQLITE@
    6679ifeq ($(USE_SQLITE), 1)
    6780SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/sqlite/lib/libsqlite3.a -ldl -lpthread
     81SQLITE_DEFINES = -DUSE_SQLITE
    6882else
    6983SQLITE_LIBS =
     84SQLITE_DEFINES =
    7085endif
    7186
     
    7792CFLAGS = @CFLAGS@
    7893CPPFLAGS = @CXXFLAGS@
    79 DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
     94DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    8095GSDLOS = @gsdlos@
    8196# Do NOT add the "recpt" directory here: the z39.50 code should be independent of the receptionist!
Note: See TracChangeset for help on using the changeset viewer.