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

    r21442 r22058  
    6363endif
    6464
     65USE_GDBM = @USE_GDBM@
     66ifeq ($(USE_GDBM), 1)
     67GDBM_DEFINES = -DUSE_GDBM
     68else
     69GDBM_DEFINES =
     70endif
     71
     72USE_JDBM = @USE_JDBM@
     73ifeq ($(USE_JDBM), 1)
     74JDBM_DEFINES = -DUSE_JDBM
     75else
     76JDBM_DEFINES =
     77endif
    6578
    6679USE_SQLITE = @USE_SQLITE@
    6780ifeq ($(USE_SQLITE), 1)
    6881SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/sqlite/lib/libsqlite3.a -ldl -lpthread
     82SQLITE_DEFINES = -DUSE_SQLITE
    6983else
    7084SQLITE_LIBS =
     85SQLITE_DEFINES =
    7186endif
    7287
     
    86101CC = @CC@
    87102CFLAGS = @CFLAGS@
    88 DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
     103DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER $(GDBM_DEFINES) $(JDBM_DEFINES) $(SQLITE_DEFINES)
    89104INCLUDES = -I$(COMMON_DIR)/src/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(RECPT_DIR) $(MGPP_INCLUDES) \
    90105    $(MICO_INCLUDES)
Note: See TracChangeset for help on using the changeset viewer.