Opened 11 years ago
Closed 5 years ago
#5137 closed defect (wontfix)
[PATCH] Cannot build static PROJ, ogr makefile.vc sets compile flags before PROJ_FLAGS is set
Reported by: | landenlabs | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | static windows PROJ_FLAGS |
Cc: |
Description
The current ogr/makefile.vc is using PROJ_FLAGS and others before it loads the nmake.opt file. You can see my suggested patch to ogr/makefile.vc below.
File: ogr/makefile.vc
LINKFLAGS = /Zi /MTd EXTRAFLAGS = -DWIN32 -I. -Iogrsf_frmts -I..\frmts\gtiff\libgeotiff -I..\frmts\zlib \
$(PROJ_FLAGS) $(PROJ_INCLUDE) $(GEOS_CFLAGS)
GDAL_ROOT = ..
!INCLUDE ..\nmake.opt
!IFDEF INCLUDE_OGR_FRMTS EXTRAFLAGS = $(EXTRAFLAGS) -DOGR_ENABLED -DHAVE_MITAB !ENDIF
!IFDEF EXPAT_DIR EXTRAFLAGS = $(EXTRAFLAGS) $(EXPAT_INCLUDE) -DHAVE_EXPAT !ENDIF
# Patch - merge in FLAGS which are fetched from nmake.opt
EXTRAFLAGS = $(EXTRAFLAGS) $(PROJ_FLAGS) $(PROJ_INCLUDE) $(GEOS_CFLAGS)
Change History (2)
comment:1 by , 9 years ago
Summary: | Cannot build static PROJ, ogr makefile.vc sets compile flags before PROJ_FLAGS is set → [PATCH] Cannot build static PROJ, ogr makefile.vc sets compile flags before PROJ_FLAGS is set |
---|
comment:2 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.