Removed messages for use in bashrc.

Pascal J. Bourguignon [2019-01-04 09:59]
Removed messages for use in bashrc.
Filename
with-gcc-8.bash
diff --git a/with-gcc-8.bash b/with-gcc-8.bash
index dd1ddeb..fb41f03 100644
--- a/with-gcc-8.bash
+++ b/with-gcc-8.bash
@@ -58,7 +58,6 @@ function with_gcc_8(){
     export LD_LIBRARY_PATH="$(trim_colons $(printf -- "%s:" "${libs[@]}"))"
     export PKG_CONFIG_PATH="${gcc_prefix}/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig"

-    gcc -dumpversion
     case "$(gcc -dumpversion)" in
     [789]*)
         export CFLAGS=$(trim_spaces "${CFLAGS:-} ${sanitize_cc[*]} -g -g3 -ggdb -O0")
@@ -69,6 +68,10 @@ function with_gcc_8(){
         export LDFLAGS=$(trim_spaces "${LDFLAGS:-}")
         ;;
     esac
+
+    # for var in PATH CFLAGS CXXFLAGS LDFLAGS LD_LIBRARY_PATH PKG_CONFIG_PATH ; do
+    #     printf "export %s='%s'\n" "${var}" "${!var}"
+    # done
 }

 with_gcc_8
ViewGit