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

    r21931 r21945  
    8181
    8282!IF $(ENABLE_MG)
     83MG_DEFS = -DENABLE_MG
    8384MG_LIBS = "$(INDEXERS_DIR)\mg\src\text\libmgtext.lib" \
    8485    "$(INDEXERS_DIR)\mg\lib\libmglib.lib"   
    8586!ELSE
     87MG_DEFS =
    8688MG_LIBS =
    8789!ENDIF
    8890
    8991!IF $(ENABLE_MGPP)
     92MGPP_DEFS = -DENABLE_MGPP
    9093MGPP_LIBS = "$(INDEXERS_DIR)\mgpp\text\libmgpptext.lib" \
    9194    "$(INDEXERS_DIR)\mgpp\lib\libmgpplib.lib"
    9295MGPP_INCLUDES = -I"$(INDEXERS_DIR)\mgpp\text"
    9396!ELSE
     97MGPP_DEFS =
    9498MGPP_LIBS =
    9599MGPP_INCLUDES =
     100!ENDIF
     101
     102!IF $(ENABLE_LUCENE)
     103LUCENE_DEFS = -DENABLE_LUCENE
     104!ELSE
     105LUCENE_DEFS=
    96106!ENDIF
    97107
     
    100110CC = cl
    101111DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE \
    102         -DGSDL_NOCACHE
     112        -DGSDL_NOCACHE $(MG_DEFS) $(MGPP_DEFS) $(LUCENE_DEFS)
    103113INCLUDES = -I"$(COMMON_DIR)\src\lib" -I"$(COLSERVR_DIR)" -I"$(PROTOCOL_DIR)" -I"$(RECPT_DIR)" \
    104114        $(MGPP_INCLUDES) -I"$(COMMON_PACKAGES_DIR)\windows\crypt\crypt" \
Note: See TracChangeset for help on using the changeset viewer.