~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to ogr/GNUmakefile

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
CPPFLAGS        :=      -DHAVE_EXPAT $(EXPAT_INCLUDE) $(CPPFLAGS)
20
20
endif
21
21
 
22
 
CPPFLAGS        :=      -Iogrsf_frmts -I. $(GDAL_INCLUDE) $(PROJ_INCLUDE) $(PROJ_FLAGS) $(CPPFLAGS)
 
22
ifeq ($(LIBZ_SETTING),internal)
 
23
ZLIB_XTRA_OPT =      -I../frmts/zlib
 
24
else
 
25
ZLIB_XTRA_OPT =
 
26
endif
 
27
 
 
28
CPPFLAGS        :=      -Iogrsf_frmts -I. $(GDAL_INCLUDE) $(PROJ_INCLUDE) $(PROJ_FLAGS) $(CPPFLAGS) $(ZLIB_XTRA_OPT)
23
29
 
24
30
default:        lib
25
31
 
35
41
 
36
42
lib:    sublibs $(OBJ:.o=.$(OBJ_EXT))
37
43
 
38
 
$(OBJ): ogr_feature.h ogr_geometry.h
 
44
$(OBJ): ogr_feature.h ogr_geometry.h swq.h
39
45
 
40
46
obj:    $(OBJ)
41
47
 
78
84
        for f in $(INST_H_FILES) ; \
79
85
            do $(INSTALL_DATA) $$f $(DESTDIR)$(INST_INCLUDE) ; \
80
86
        done
 
87
 
 
88
# The sed substition below workarounds a bug with gcc 4.1 -O2 (checked on 64bit platforms)
 
89
# that produces buggy compiled code.
 
90
# Seen on gcc 4.1.2-27ubuntu1 (Ubuntu 10.04) (not the default compiler) and gcc-4.1.2-48.el5 (CentOS 5.5)
 
91
# (default compiler...)
 
92
# The memset isn't necessary at all with a non-buggy compiler, but I've found
 
93
# that it helps gcc 4.1 generating correct code here...
 
94
parser:
 
95
        bison -p swq -d -oswq_parser.cpp swq_parser.y
 
96
        sed "s/yytype_int16 yyssa\[YYINITDEPTH\];/yytype_int16 yyssa[YYINITDEPTH]; \/\* workaround bug with gcc 4.1 -O2 \*\/ memset(yyssa, 0, sizeof(yyssa));/" < swq_parser.cpp > swq_parser.cpp.tmp
 
97
        mv swq_parser.cpp.tmp swq_parser.cpp
 
98