<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>6738</bug_id>
          
          <creation_ts>2009-05-13 00:56</creation_ts>
          <short_desc>Globus proxy utils does not compile with old autotools</short_desc>
          <delta_ts>2010-01-29 13:51:46</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>GSI C</product>
          <component>Authentication</component>
          <version>4.2.1</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.0.1</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mattias Ellert">mattias.ellert@fysast.uu.se</reporter>
          <assigned_to name="Joe Bester">bester@mcs.anl.gov</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who name="Mattias Ellert">mattias.ellert@fysast.uu.se</who>
            <bug_when>2009-05-13 00:56:30</bug_when>
            <thetext>The attempt to fix the propagation of the LDFLAGS in this CVS commit:

http://viewcvs.globus.org/viewcvs.cgi/gsi/proxy/proxy_utils/source/programs/Makefile.am?r1=1.7&amp;r2=1.8

does not work with older versions of autotools, resulting in compilation errors:

running aclocal  -I /usr/share/globus/aclocal
running libtoolize --copy --force
running automake --copy -add-missing --foreign
configure.in: installing `./mkinstalldirs&apos;
/usr/share/automake-1.6/am/compile.am: LDFLAGS was set with `+=&apos; and is now set with `=&apos;
/usr/share/automake-1.6/am/compile.am: LDFLAGS was set with `+=&apos; and is now set with `=&apos;
ERROR: bootstrap failed!

The portable way that works with all versions of autotools and that is used everywhere else in the globus toolkit is to use the pgmname_LDFLAGS variables for this:

diff -ur globus_proxy_utils-2.5.orig/programs/Makefile.am globus_proxy_utils-2.5/programs/Makefile.am
--- globus_proxy_utils-2.5.orig/programs/Makefile.am	2008-04-28 20:23:25.000000000 +0200
+++ globus_proxy_utils-2.5/programs/Makefile.am	2009-05-10 18:21:15.000000000 +0200
@@ -6,11 +6,14 @@
 INCLUDES =  -I$(top_srcdir) $(GPT_INCLUDES) 
 
 grid_cert_diagnostics_SOURCES = grid_cert_diagnostics.c
+grid_cert_diagnostics_LDFLAGS = $(GPT_LDFLAGS)
 grid_proxy_init_SOURCES = grid_proxy_init.c globus_stdio_ui.c globus_stdio_ui.h
+grid_proxy_init_LDFLAGS = $(GPT_LDFLAGS)
 grid_proxy_destroy_SOURCES = grid_proxy_destroy.c
+grid_proxy_destroy_LDFLAGS = $(GPT_LDFLAGS)
 grid_proxy_info_SOURCES = grid_proxy_info.c
+grid_proxy_info_LDFLAGS = $(GPT_LDFLAGS)
 
 LDADD = $(GPT_PGM_LINKS)
-LDFLAGS += $(GPT_LDFLAGS)
 
 include $(top_srcdir)/globus_automake_post</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Joe Bester">bester@mcs.anl.gov</who>
            <bug_when>2010-01-29 13:51:46</bug_when>
            <thetext>Fix committed to 5.0 branch and trunk</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>