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/z3950/win32.mak

    r21435 r21945  
    7979
    8080!IF $(ENABLE_MG)
     81MG_DEFS = -DENABLE_MG
    8182MG_LIBS = "$(INDEXERS_DIR)\mg\src\text\libmgtext.lib" \
    8283    "$(INDEXERS_DIR)\mg\lib\libmglib.lib"
    8384!ELSE
     85MG_DEFS =
    8486MG_LIBS =
    8587!ENDIF
    8688
    8789!IF $(ENABLE_MGPP)
     90MGPP_DEFS = -DENABLE_MGPP
    8891MGPP_LIBS = "$(INDEXERS_DIR)\mgpp\text\libmgpptext.lib" \
    8992    "$(INDEXERS_DIR)\mgpp\lib\libmgpplib.lib"
    9093MGPP_INCLUDES = -I"$(INDEXERS_DIR)\mgpp\text"
    9194!ELSE
     95MGPP_DEFS =
    9296MGPP_LIBS =
    9397MGPP_INCLUDES =
    9498!ENDIF
    9599
     100!IF $(ENABLE_LUCENE)
     101LUCENE_DEFS = -DENABLE_LUCENE
     102!ELSE
     103LUCENE_DEFS=
     104!ENDIF
     105
    96106AR = lib
    97107CC = cl
    98 DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
     108DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE \
     109    $(MG_DEFS) $(MGPP_DEFS) $(LUCENE_DEFS)
    99110# Do NOT add the "recpt" directory here: the z39.50 code should be independent of the receptionist!
    100111INCLUDES = -I"$(GSDL_DIR)" -I"$(COMMON_DIR)\src\lib" -I"$(COLSERVR_DIR)" -I"$(PROTOCOL_DIR)" \
Note: See TracChangeset for help on using the changeset viewer.