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

    r21435 r21945  
    7373
    7474!IF $(ENABLE_MG)
     75MG_DEFS = -DENABLE_MG
    7576MG_LIBS = "$(INDEXERS_DIR)\mg\src\text\libmgtext.lib" \
    7677    "$(INDEXERS_DIR)\mg\lib\libmglib.lib"
    7778MG_INCLUDES = -I"$(INDEXERS_DIR)\mg" -I"$(INDEXERS_DIR)\mg\lib" -I"$(INDEXERS_DIR)\mg\src\text"
    7879!ELSE
     80MG_DEFS =
    7981MG_LIBS =
    8082MG_INCLUDES =
     
    9294!ENDIF
    9395
     96!IF $(ENABLE_LUCENE)
     97LUCENE_DEFS = -DENABLE_LUCENE
     98!ELSE
     99LUCENE_DEFS=
     100!ENDIF
     101
    94102AR = lib
    95103CC = cl
    96 DEFS = -D__WIN32__ -DHAVE_CONFIG_H -D_LITTLE_ENDIAN -DPARADOCNUM -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE $(MGPP_DEFS)
     104DEFS = -D__WIN32__ -DHAVE_CONFIG_H -D_LITTLE_ENDIAN -DPARADOCNUM -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE \
     105    $(MG_DEFS) $(MGPP_DEFS) $(LUCENE_DEFS)
    97106INCLUDES = -I"$(GSDL_DIR)" -I"$(COMMON_DIR)\src\lib" -I"$(COLSERVR_DIR)" -I"$(PROTOCOL_DIR)" -I"$(RECPT_DIR)" \
    98107    -I"$(COMMON_PACKAGES_DIR)\gdbm\gdbm-1.8.3" -I"$(COMMON_PACKAGES_DIR)\gdbm\gdbm-1.8.3\windows" \
Note: See TracChangeset for help on using the changeset viewer.