[GRASS-SVN] r37943 - grass/trunk/include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 19 04:09:20 EDT 2009


Author: mmetz
Date: 2009-06-19 04:09:19 -0400 (Fri, 19 Jun 2009)
New Revision: 37943

Modified:
   grass/trunk/include/Make/Grass.make
Log:
vector modules need LFS too if requested

Modified: grass/trunk/include/Make/Grass.make
===================================================================
--- grass/trunk/include/Make/Grass.make	2009-06-19 07:35:31 UTC (rev 37942)
+++ grass/trunk/include/Make/Grass.make	2009-06-19 08:09:19 UTC (rev 37943)
@@ -77,15 +77,16 @@
 COMPILE_FLAGS      = $(CPPFLAGS) $(CFLAGS1) $(INCLUDE_DIRS)
 COMPILE_FLAGS_CXX  = $(CPPFLAGS) $(CXXFLAGS1) $(INCLUDE_DIRS)
 
+# crude hack for vector LFS, LFS_FLAGS should be set by configure
+ifdef USE_LARGEFILES
+VECT_LFS_FLAGS = -D_FILE_OFFSET_BITS=64
+endif
+
 CFLAGS      =  $(INC) $(COMPILE_FLAGS)
 CXXFLAGS    =  $(INC) $(COMPILE_FLAGS_CXX)
 LDFLAGS     =  $(LIBPATH) $(LINK_FLAGS) $(LD_SEARCH_FLAGS) $(PQLIBPATH)
-VECT_CFLAGS =  $(GDALCFLAGS) $(GEOSCFLAGS)
+VECT_CFLAGS =  $(GDALCFLAGS) $(GEOSCFLAGS) $(VECT_LFS_FLAGS)
 
-ifdef USE_LARGEFILES
-VECT_CFLAGS += -D_FILE_OFFSET_BITS=64
-endif
-
 # Object with _fmode which must be linked to each executable on Windows
 ifdef MINGW
 FMODE_OBJ = $(BASE_LIBDIR)/fmode.o



More information about the grass-commit mailing list