Ticket #55878: configure.patch

File configure.patch, 814 bytes (added by ryandesign (Ryan Carsten Schmidt), 7 years ago)
  • configure

    Allow LDFLAGS to be passed from the environment.
    old new  
    5656
    5757#----------------------------------------------------------------------
    5858# Initialize all variables here such that nothing can leak in from the
    59 # environment except for CC and CFLAGS, which we might have passed in.
     59# environment except for CC, CFLAGS and LDFLAGS, which we might have passed in.
    6060#----------------------------------------------------------------------
    6161
    6262CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | make -sf -`
     
    6565CFLAGS="${CFLAGS} -Wwrite-strings -Wno-unused-parameter"
    6666LDADD=
    6767CPPFLAGS=
    68 LDFLAGS=
     68LDFLAGS=`printf "all:\\n\\t@echo \\\$(LDFLAGS)\\n" | make -sf -`
    6969PREFIX="/usr/local"
    7070BINDIR=
    7171SBINDIR=