Add a new script to replace the `scl enable` command. Also update the `enable_devtoolset` macro to instead be called `enable_gcctoolset` and have it use a new installed script instead of an SCL snippet. Resolves: RHEL-88743
12 lines
175 B
Plaintext
12 lines
175 B
Plaintext
# Environment wrapper for GCC Toolset %{gts_ver}
|
|
|
|
source %{_root_prefix}/lib/gcc-toolset/%{gts_ver}-env.source
|
|
|
|
if [ -z $1 ]; then
|
|
cmd="/bin/sh"
|
|
else
|
|
cmd=$*
|
|
fi
|
|
|
|
exec $cmd
|