public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] Use AR, LD, OBJDUMP, OJBCOPY, and GPROF if there are set at configure
@ 2022-10-28 17:42 Adhemerval Zanella
0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:42 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5e7ca48ca0c0929b449f194a71f33c0e6c3b4fd3
commit 5e7ca48ca0c0929b449f194a71f33c0e6c3b4fd3
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Aug 4 16:43:17 2022 -0300
Use AR, LD, OBJDUMP, OJBCOPY, and GPROF if there are set at configure
Diff:
---
aclocal.m4 | 20 +++++++++++++++-----
configure | 20 +++++++++++++++-----
2 files changed, 30 insertions(+), 10 deletions(-)
diff --git a/aclocal.m4 b/aclocal.m4
index 94c931b4f2..01afd73239 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -118,14 +118,24 @@ case "$CC" in
*fuse-ld=lld*) LDNAME=ld.lld;;
*) LDNAME=ld;;
esac
-LD=`$CC -print-prog-name=$LDNAME`
-AR=`$CC -print-prog-name=ar`
+if test -z "$LD"; then
+ LD=`$CC -print-prog-name=$LDNAME`
+fi
+if test -z "$AR"; then
+ AR=`$CC -print-prog-name=ar`
+fi
AC_SUBST(AR)
-OBJDUMP=`$CC -print-prog-name=objdump`
+if test -z "$OBJDUMP"; then
+ OBJDUMP=`$CC -print-prog-name=objdump`
+fi
AC_SUBST(OBJDUMP)
-OBJCOPY=`$CC -print-prog-name=objcopy`
+if test -z "$OBJCOPY"; then
+ OBJCOPY=`$CC -print-prog-name=objcopy`
+fi
AC_SUBST(OBJCOPY)
-GPROF=`$CC -print-prog-name=gprof`
+if test -z "$GPROF"; then
+ GPROF=`$CC -print-prog-name=gprof`
+fi
AC_SUBST(GPROF)
# Determine whether we are using GNU binutils.
diff --git a/configure b/configure
index 3476e62ee7..03fceee905 100755
--- a/configure
+++ b/configure
@@ -4575,14 +4575,24 @@ case "$CC" in
*fuse-ld=lld*) LDNAME=ld.lld;;
*) LDNAME=ld;;
esac
-LD=`$CC -print-prog-name=$LDNAME`
-AR=`$CC -print-prog-name=ar`
+if test -z "$LD"; then
+ LD=`$CC -print-prog-name=$LDNAME`
+fi
+if test -z "$AR"; then
+ AR=`$CC -print-prog-name=ar`
+fi
-OBJDUMP=`$CC -print-prog-name=objdump`
+if test -z "$OBJDUMP"; then
+ OBJDUMP=`$CC -print-prog-name=objdump`
+fi
-OBJCOPY=`$CC -print-prog-name=objcopy`
+if test -z "$OBJCOPY"; then
+ OBJCOPY=`$CC -print-prog-name=objcopy`
+fi
-GPROF=`$CC -print-prog-name=gprof`
+if test -z "$GPROF"; then
+ GPROF=`$CC -print-prog-name=gprof`
+fi
# Determine whether we are using GNU binutils.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [glibc/azanella/clang] Use AR, LD, OBJDUMP, OJBCOPY, and GPROF if there are set at configure
@ 2022-10-04 13:00 Adhemerval Zanella
0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 13:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4339a024e0ab39d1a7720c2a31ae3c1f01477dd8
commit 4339a024e0ab39d1a7720c2a31ae3c1f01477dd8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Aug 4 16:43:17 2022 -0300
Use AR, LD, OBJDUMP, OJBCOPY, and GPROF if there are set at configure
Diff:
---
aclocal.m4 | 20 +++++++++++++++-----
configure | 20 +++++++++++++++-----
2 files changed, 30 insertions(+), 10 deletions(-)
diff --git a/aclocal.m4 b/aclocal.m4
index 94c931b4f2..01afd73239 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -118,14 +118,24 @@ case "$CC" in
*fuse-ld=lld*) LDNAME=ld.lld;;
*) LDNAME=ld;;
esac
-LD=`$CC -print-prog-name=$LDNAME`
-AR=`$CC -print-prog-name=ar`
+if test -z "$LD"; then
+ LD=`$CC -print-prog-name=$LDNAME`
+fi
+if test -z "$AR"; then
+ AR=`$CC -print-prog-name=ar`
+fi
AC_SUBST(AR)
-OBJDUMP=`$CC -print-prog-name=objdump`
+if test -z "$OBJDUMP"; then
+ OBJDUMP=`$CC -print-prog-name=objdump`
+fi
AC_SUBST(OBJDUMP)
-OBJCOPY=`$CC -print-prog-name=objcopy`
+if test -z "$OBJCOPY"; then
+ OBJCOPY=`$CC -print-prog-name=objcopy`
+fi
AC_SUBST(OBJCOPY)
-GPROF=`$CC -print-prog-name=gprof`
+if test -z "$GPROF"; then
+ GPROF=`$CC -print-prog-name=gprof`
+fi
AC_SUBST(GPROF)
# Determine whether we are using GNU binutils.
diff --git a/configure b/configure
index 3476e62ee7..03fceee905 100755
--- a/configure
+++ b/configure
@@ -4575,14 +4575,24 @@ case "$CC" in
*fuse-ld=lld*) LDNAME=ld.lld;;
*) LDNAME=ld;;
esac
-LD=`$CC -print-prog-name=$LDNAME`
-AR=`$CC -print-prog-name=ar`
+if test -z "$LD"; then
+ LD=`$CC -print-prog-name=$LDNAME`
+fi
+if test -z "$AR"; then
+ AR=`$CC -print-prog-name=ar`
+fi
-OBJDUMP=`$CC -print-prog-name=objdump`
+if test -z "$OBJDUMP"; then
+ OBJDUMP=`$CC -print-prog-name=objdump`
+fi
-OBJCOPY=`$CC -print-prog-name=objcopy`
+if test -z "$OBJCOPY"; then
+ OBJCOPY=`$CC -print-prog-name=objcopy`
+fi
-GPROF=`$CC -print-prog-name=gprof`
+if test -z "$GPROF"; then
+ GPROF=`$CC -print-prog-name=gprof`
+fi
# Determine whether we are using GNU binutils.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-28 17:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 17:42 [glibc/azanella/clang] Use AR, LD, OBJDUMP, OJBCOPY, and GPROF if there are set at configure Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2022-10-04 13:00 Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).