Skip to contentSkip to conversation

configure clobbers LDFLAGS

PATCH Paul Jarc 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

Paul Jarc

author
#0 lore raw

(I'm not subscribed; Mail-Followup-To set.)

In a couple of tests, configure clobbers the LDFLAGS value set by the caller. This patch fixes it.

paul

configure.ac +2 -2
index 8821b50..0a5fc8c 100644
@@ -127,7 +127,7 @@ else
       SAVE_LDFLAGS="${LDFLAGS}"
       LDFLAGS="${SAVE_LDFLAGS} -Wl,-rpath,/"
       AC_LINK_IFELSE(AC_LANG_PROGRAM([], []), [ld_wl_rpath=yes], [ld_wl_rpath=no])
-      LDFLAGS="${SAVE_LD_FLAGS}"
+      LDFLAGS="${SAVE_LDFLAGS}"
    ])
    if test "$ld_wl_rpath" = "yes"; then
       AC_SUBST(CC_LD_DYNPATH, [-Wl,-rpath,])
@@ -136,7 +136,7 @@ else
          SAVE_LDFLAGS="${LDFLAGS}"
          LDFLAGS="${SAVE_LDFLAGS} -rpath /"
          AC_LINK_IFELSE(AC_LANG_PROGRAM([], []), [ld_rpath=yes], [ld_rpath=no])
-         LDFLAGS="${SAVE_LD_FLAGS}"
+         LDFLAGS="${SAVE_LDFLAGS}"
       ])
       if test "$ld_rpath" = "yes"; then
          AC_SUBST(CC_LD_DYNPATH, [-rpath])
#1 lore raw
Quoted 2 lines · Paul Jarc

In a couple of tests, configure clobbers the LDFLAGS value set by the caller. This patch fixes it.

Thanks for the patch. It looks obviously correct to me, and the problem was just some typos introduced by 798a9450.

Junio, I think this should go onto maint.

Quoted 1 line

(I'm not subscribed; Mail-Followup-To set.)

The usual behavior on this list is to reply to the sender, cc'ing the list and any previous to or cc's. So MFT is unnecessary and generally frowned upon here.

Also, if you are planning on sending more patches, the usual practice is for them to be inline rather than attached, with the commit message as the body and any cover letter (like MFT discussion) after the triple-dash; git format-patch will generate this format for you. More information is in Documentation/SubmittingPatches.

-Peff

#2 lore raw
Quoted 9 lines · Jeff King
Quoted 2 lines · Paul Jarc

In a couple of tests, configure clobbers the LDFLAGS value set by the caller. This patch fixes it.

Thanks for the patch. It looks obviously correct to me, and the problem was just some typos introduced by 798a9450.

Junio, I think this should go onto maint.

Thanks; will queue.