mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 3 years ago
Clone

Blame SOURCES/lvm2-2_03_06-configure-Fix-setting-of-CLDFLAGS-default.patch

26e710
 configure    | 6 +++---
26e710
 configure.ac | 6 +++---
26e710
 2 files changed, 6 insertions(+), 6 deletions(-)
26e710
26e710
diff --git a/configure b/configure
26e710
index ff3a59b..4c84765 100755
26e710
--- a/configure
26e710
+++ b/configure
26e710
@@ -3077,7 +3077,7 @@ if test -z "$CFLAGS"; then :
26e710
 fi
26e710
 case "$host_os" in
26e710
 	linux*)
26e710
-		CLDFLAGS="${CLDFLAGS:"$LDFLAGS"} -Wl,--version-script,.export.sym"
26e710
+		CLDFLAGS="${CLDFLAGS-"$LDFLAGS"} -Wl,--version-script,.export.sym"
26e710
 		# equivalent to -rdynamic
26e710
 		ELDFLAGS="-Wl,--export-dynamic"
26e710
 		# FIXME Generate list and use --dynamic-list=.dlopen.sym
26e710
@@ -3098,7 +3098,7 @@ case "$host_os" in
26e710
 		;;
26e710
 	darwin*)
26e710
 		CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
26e710
-		CLDFLAGS="${CLDFLAGS:"$LDFLAGS"}"
26e710
+		CLDFLAGS="${CLDFLAGS-"$LDFLAGS"}"
26e710
 		ELDFLAGS=
26e710
 		CLDWHOLEARCHIVE="-all_load"
26e710
 		CLDNOWHOLEARCHIVE=
26e710
@@ -3111,7 +3111,7 @@ case "$host_os" in
26e710
 		BLKDEACTIVATE=no
26e710
 		;;
26e710
 	*)
26e710
-		CLDFLAGS="${CLDFLAGS:"$LDFLAGS"}"
26e710
+		CLDFLAGS="${CLDFLAGS-"$LDFLAGS"}"
26e710
 		;;
26e710
 esac
26e710
 
26e710
diff --git a/configure.ac b/configure.ac
26e710
index 1e45c0e..9c82773 100644
26e710
--- a/configure.ac
26e710
+++ b/configure.ac
26e710
@@ -30,7 +30,7 @@ AC_CANONICAL_TARGET([])
26e710
 AS_IF([test -z "$CFLAGS"], [COPTIMISE_FLAG="-O2"])
26e710
 case "$host_os" in
26e710
 	linux*)
26e710
-		CLDFLAGS="${CLDFLAGS:"$LDFLAGS"} -Wl,--version-script,.export.sym"
26e710
+		CLDFLAGS="${CLDFLAGS-"$LDFLAGS"} -Wl,--version-script,.export.sym"
26e710
 		# equivalent to -rdynamic
26e710
 		ELDFLAGS="-Wl,--export-dynamic"
26e710
 		# FIXME Generate list and use --dynamic-list=.dlopen.sym
26e710
@@ -51,7 +51,7 @@ case "$host_os" in
26e710
 		;;
26e710
 	darwin*)
26e710
 		CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
26e710
-		CLDFLAGS="${CLDFLAGS:"$LDFLAGS"}"
26e710
+		CLDFLAGS="${CLDFLAGS-"$LDFLAGS"}"
26e710
 		ELDFLAGS=
26e710
 		CLDWHOLEARCHIVE="-all_load"
26e710
 		CLDNOWHOLEARCHIVE=
26e710
@@ -64,7 +64,7 @@ case "$host_os" in
26e710
 		BLKDEACTIVATE=no
26e710
 		;;
26e710
 	*)
26e710
-		CLDFLAGS="${CLDFLAGS:"$LDFLAGS"}"
26e710
+		CLDFLAGS="${CLDFLAGS-"$LDFLAGS"}"
26e710
 		;;
26e710
 esac
26e710