Ignore:
Timestamp:
2010-04-22T20:38:17+12:00 (14 years ago)
Author:
ak19
Message:

Fixed up win32.mak files in runtime-src that set DEFS for ANY of the indexers that can be ENABLEd/DISABLEd, such that DEFS for ALL the indexers are now set. Not doing so was causing memory overwrite problems (and consequently crashing) since different windows makefiles specified different indexers as specifically defined (leaving others unmentioned) whereas other makefiles would particularly pass on DEFS flags for all indexers. This made classes which were compiled which such makefiles and which contained references to these indexer objects a different size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/protocol/win32.mak

    r21435 r21945  
    3838DLL = 0
    3939DLLDEBUG = 0
     40ENABLE_MG = 1
    4041ENABLE_MGPP = 1
     42ENABLE_LUCENE = 1
    4143
    4244!IF $(DEBUG)
     
    6062!ENDIF
    6163
     64!IF $(ENABLE_MG)
     65MG_DEFS = -DENABLE_MG
     66!ELSE
     67MG_DEFS=
     68!ENDIF
     69
    6270!IF $(ENABLE_MGPP)
     71MGPP_DEFS = -DENABLE_MGPP
    6372MGPP_INCLUDES = -I"$(INDEXERS_DIR)\mgpp\text"
    6473!ELSE
     74MGPP_DEFS =
    6575MGPP_INCLUDES =
     76!ENDIF
     77
     78!IF $(ENABLE_LUCENE)
     79LUCENE_DEFS = -DENABLE_LUCENE
     80!ELSE
     81LUCENE_DEFS=
    6682!ENDIF
    6783
    6884AR = lib
    6985CC = cl
    70 DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
     86DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE \
     87    $(MG_DEFS) $(MGPP_DEFS) $(LUCENE_DEFS)
    7188# Do NOT add the "recpt" directory here: the protocol should be independent of the receptionist!
    7289INCLUDES = -I"$(GSDL_DIR)" -I"$(COMMON_DIR)\src\lib" -I"$(COLSERVR_DIR)" $(MGPP_INCLUDES) \
Note: See TracChangeset for help on using the changeset viewer.