gprofng: use $host instead $target
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 5 May 2022 07:08:19 +0000 (00:08 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 5 May 2022 17:12:12 +0000 (10:12 -0700)
By mistake, $target was used instead of $host to configure the gprogng build.

gprofng/ChangeLog
2022-04-28  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

PR gprofng/29113
PR gprofng/29116
* configure.ac: Use $host instead $target.
* libcollector/configure.ac: Likewise.
* configure: Rebuild.
* libcollector/configure: Rebuild.

gprofng/configure
gprofng/configure.ac
gprofng/libcollector/configure
gprofng/libcollector/configure.ac

index 6e38a14069613764d9faf0637c203957dfb40e65..d0345ecdfbc4d7b7689f0b813c5247d2aea79ce2 100755 (executable)
@@ -15780,18 +15780,13 @@ gprofng_cppflags="-U_ASM"
 build_collector=
 build_src=
 
-# This is annoying: it means we have to pass --enable-shared explicitly to
-# get gprofng, while the configure default is supposed to be that shared libs
-# are on by default.  But as long as libiberty has code like this, so must
-# we...
-
-  case "${target}" in
+  case "${host}" in
     x86_64-*-linux*)
       build_src=true
       build_collector=true
       ;;
     i?86-*-linux*)
-      build_collector=true
+      build_src=true
       build_collector=true
       ;;
     aarch64-*-linux*)
index 80bbc8569f599d62cb796de7b58f11718ff149d4..63b505c5e14005a443f7899d9357498436e721a1 100644 (file)
@@ -54,18 +54,13 @@ gprofng_cppflags="-U_ASM"
 build_collector=
 build_src=
 
-# This is annoying: it means we have to pass --enable-shared explicitly to
-# get gprofng, while the configure default is supposed to be that shared libs
-# are on by default.  But as long as libiberty has code like this, so must
-# we...
-
-  case "${target}" in
+  case "${host}" in
     x86_64-*-linux*)
       build_src=true
       build_collector=true
       ;;
     i?86-*-linux*)
-      build_collector=true
+      build_src=true
       build_collector=true
       ;;
     aarch64-*-linux*)
index 0afa31d0819bb255b82dd10d9f3a8a2d84667375..687a6eeda5dab635cb79842ed1da90ff9e792b83 100755 (executable)
@@ -15475,7 +15475,7 @@ if test "$enable_shared" != "yes"; then
 fi
 
 GPROFNG_VARIANT=unknown
-case "${target}" in
+case "${host}" in
   x86_64-*-linux*)
     GPROFNG_VARIANT=amd64-Linux
     ;;
index f49d120e0fdd73e44e96d91a1cecba3a99486490..6b6c5c03e27e341cfe5ba11227ee64e59bbfa9f0 100644 (file)
@@ -42,7 +42,7 @@ if test "$enable_shared" != "yes"; then
 fi
 
 GPROFNG_VARIANT=unknown
-case "${target}" in
+case "${host}" in
   x86_64-*-linux*)
     GPROFNG_VARIANT=amd64-Linux
     ;;