We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5abf4e1 + c331951 commit 81bf0a9Copy full SHA for 81bf0a9
src/shc.c
@@ -94,6 +94,7 @@ static const char * help[] = {
94
" Environment variables used:",
95
" Name Default Usage",
96
" CC cc C compiler command",
97
+" STRIP strip Strip command",
98
" CFLAGS <none> C compiler flags",
99
" LDFLAGS <none> Linker flags",
100
"",
@@ -1309,7 +1310,10 @@ file2=strcat(file2,".x");
1309
1310
if (verbose) fprintf(stderr, "%s: %s\n", my_name, cmd);
1311
if (system(cmd))
1312
return -1;
- sprintf(cmd, "strip %s", file2);
1313
+ char* strip = getenv("STRIP");
1314
+ if (!strip)
1315
+ strip = "strip";
1316
+ sprintf(cmd, "%s %s", strip, file2);
1317
1318
1319
fprintf(stderr, "%s: never mind\n", my_name);
0 commit comments