Skip to content

Commit

Permalink
Fix macOS configuration for alternative g++ names
Browse files Browse the repository at this point in the history
The g++ compiler executable may have a longer name, for different
installed versions (e.g., g++-11). Also, fix the wrong variable name
printed in the option list.
  • Loading branch information
mchamberland authored and ftessier committed Oct 31, 2022
1 parent ab8758b commit 441baac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HEN_HOUSE/scripts/configure_c++
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ case $canonical_system in
libext=".dylib"; libext_bundle=".so"; defines="-DOSX";
lib_link1="-L\$(abs_dso)"; shared="-dynamiclib";
case $CXX in
g++) shared_bundle="-bundle" ;;
g++*) shared_bundle="-bundle" ;;
*) shared_bundle="-qmkshrobj" ;; # assume xlC
esac
;;
Expand Down Expand Up @@ -302,7 +302,7 @@ EOF
num_options=8
if test $is_osx = yes; then
cat >&2 <<EOF
9) $bundle_options: $f_libs
9) $bundle_options: $shared_bundle
EOF
num_options=9
fi
Expand Down

0 comments on commit 441baac

Please sign in to comment.