diff --git a/easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.2.0.eb b/easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.2.0.eb index d97e184c8e4..a75e046b3d0 100644 --- a/easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.2.0.eb +++ b/easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.2.0.eb @@ -29,7 +29,7 @@ postinstallcmds = [ "cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp", "mkdir %(installdir)s/LercTest", "cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp", - "cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc", + "cd %(installdir)s/LercTest && ${CXX} ${CXXFLAGS} main.cpp -o LercTest -I../include -L../lib -lLerc", ] sanity_check_commands = [ diff --git a/easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.3.0.eb b/easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.3.0.eb index d840c118937..244ff0d0dde 100644 --- a/easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.3.0.eb +++ b/easybuild/easyconfigs/l/LERC/LERC-3.0-GCCcore-10.3.0.eb @@ -30,7 +30,7 @@ postinstallcmds = [ "cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp", "mkdir %(installdir)s/LercTest", "cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp", - "cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc", + "cd %(installdir)s/LercTest && ${CXX} ${CXXFLAGS} main.cpp -o LercTest -I../include -L../lib -lLerc", ] sanity_check_commands = [ diff --git a/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-11.3.0.eb b/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-11.3.0.eb index 0d75f8951b5..0e4b8e45445 100644 --- a/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-11.3.0.eb +++ b/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-11.3.0.eb @@ -30,7 +30,7 @@ postinstallcmds = [ "cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp", "mkdir %(installdir)s/LercTest", "cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp", - "cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc", + "cd %(installdir)s/LercTest && ${CXX} ${CXXFLAGS} main.cpp -o LercTest -I../include -L../lib -lLerc", ] sanity_check_commands = [ diff --git a/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.2.0.eb b/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.2.0.eb index 6ab247c4dc5..195f472bdb3 100644 --- a/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.2.0.eb +++ b/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.2.0.eb @@ -30,7 +30,7 @@ postinstallcmds = [ "cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp", "mkdir %(installdir)s/LercTest", "cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp", - "cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc", + "cd %(installdir)s/LercTest && ${CXX} ${CXXFLAGS} main.cpp -o LercTest -I../include -L../lib -lLerc", ] sanity_check_commands = [ diff --git a/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.3.0.eb b/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.3.0.eb index 72119ad4c33..20a4a92f02a 100644 --- a/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.3.0.eb +++ b/easybuild/easyconfigs/l/LERC/LERC-4.0.0-GCCcore-12.3.0.eb @@ -30,7 +30,7 @@ postinstallcmds = [ "cd %(builddir)s/lerc-%(version)s/src/LercTest && sed -i -e 's@../LercLib/include/@@' main.cpp", "mkdir %(installdir)s/LercTest", "cp %(builddir)s/lerc-%(version)s/src/LercTest/main.cpp %(installdir)s/LercTest/main.cpp", - "cd %(installdir)s/LercTest && g++ main.cpp -o LercTest -I../include -L../lib -lLerc", + "cd %(installdir)s/LercTest && ${CXX} ${CXXFLAGS} main.cpp -o LercTest -I../include -L../lib -lLerc", ] sanity_check_commands = [