[GRASS-dev] [GRASS GIS] #2916: configure bug (?): FORTIFY_SOURCE in CPPFLAGS breaks configure on Arch Linux

GRASS GIS trac at osgeo.org
Thu Feb 18 21:18:38 PST 2016


#2916: configure bug (?): FORTIFY_SOURCE in CPPFLAGS breaks configure on Arch
Linux
------------------------+-------------------------
  Reporter:  msieczka   |      Owner:  grass-dev@…
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  7.0.4
 Component:  Compiling  |    Version:  7.0.3
Resolution:             |   Keywords:
       CPU:  All        |   Platform:  Linux
------------------------+-------------------------

Comment (by msieczka):

 Replying to [comment:13 glynn]:

 How about this:

 {{{
 CFLAGS="$CPPFLAGS $CFLAGS" CXXFLAGS="$CPPFLAGS $CXXFLAGS" CPPFLAGS=`echo
 $CPPFLAGS | sed 's/-D_FORTIFY_SOURCE=.//g'` ./configure
 }}}

 This way I'm passing all CPPFLAGS as declared in /etc/makepkg.conf to
 CXXFLAGS and CFLAGS for make, I don't give up on CPPFLAGS entirely in case
 it contained anything that configure could need, but I drop
 D_FORTIFY_SOURCE from CPPFLAGS for configure, to avoid the
 "_FORTIFY_SOURCE requires compiling with optimization" issue. Seems least
 intrusive and foolproof?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2916#comment:14>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list