[GRASS-SVN] r35769 - grass/branches/releasebranch_6_4/include/Make
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 5 03:50:55 EST 2009
Author: neteler
Date: 2009-02-05 03:50:54 -0500 (Thu, 05 Feb 2009)
New Revision: 35769
Modified:
grass/branches/releasebranch_6_4/include/Make/Shlib.make
Log:
fix for trac #469 implemented (fix Windows binary mode + compilation)
Modified: grass/branches/releasebranch_6_4/include/Make/Shlib.make
===================================================================
--- grass/branches/releasebranch_6_4/include/Make/Shlib.make 2009-02-05 08:45:00 UTC (rev 35768)
+++ grass/branches/releasebranch_6_4/include/Make/Shlib.make 2009-02-05 08:50:54 UTC (rev 35769)
@@ -2,11 +2,16 @@
SHLIB = $(ARCH_LIBDIR)/$(SHLIB_PREFIX)$(SHLIB_NAME).$(GRASS_VERSION_NUMBER)$(SHLIB_SUFFIX)
+# Object that calls _setfmode(_O_BINARY) which must be linked to each DLL on Windows
+ifdef MINGW
+ DLLMAIN_OBJ = $(MODULE_TOPDIR)/lib/gis/$(OBJDIR)/dllmain.o
+endif
+
CFLAGS += $(SHLIB_CFLAGS) $(NLS_CFLAGS)
LDFLAGS += $(SHLIB_LDFLAGS)
$(SHLIB): $(SHLIB_OBJS)
- $(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(EXTRA_LIBS) && \
+ $(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(EXTRA_LIBS) $(DLLMAIN_OBJ) && \
(cd $(ARCH_LIBDIR); ln -f -s $(notdir $@) $(patsubst %.$(GRASS_VERSION_NUMBER)$(SHLIB_SUFFIX),%$(SHLIB_SUFFIX),$@))
shlib: $(SHLIB)
More information about the grass-commit
mailing list