Elf2Mac: treat an empty RETRO68_REAL_LD environment variable as unset

This commit is contained in:
Wolfgang Thaller 2024-05-11 01:14:14 +02:00
parent ae4f1cfa1f
commit 9f4252d7f8

View File

@ -91,7 +91,7 @@ int main(int argc, char *argv[])
std::copy(argv + 1, argv+argc, std::back_inserter(args));
realLdPath = string(argv[0]) + ".real";
if (char *path = getenv("RETRO68_REAL_LD"))
if (char *path = getenv("RETRO68_REAL_LD"); path && path[0])
realLdPath = path;
string outputFile = "a.out";