authorgravatar for donghee.na92@gmail.comDong-hee Na <donghee.na92@gmail.com> 2019-05-02 00:40:09+09:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-05-01 16:11:08-04:00
logc00c18de6a5e436b1c362c06d6e5259c8f731a90
treea8c80c1687cd4cc5e354465e71f2d9ab6e013b1e
parent6e4f69a54a976efd2d5203a848deeffcd7891f62

main: change --enable-pic and --disable-pic to -fPIC and -fno-PIC


1 files changed, 4 insertions(+), 4 deletions(-)

src/main.cpp+4-4
......@@ -54,11 +54,11 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) {
5454 " --cache [auto|off|on] build in cache, print output path to stdout\n"
5555 " --color [auto|off|on] enable or disable colored error messages\n"
5656 " --disable-gen-h do not generate a C header file (.h)\n"
57 " --disable-pic disable Position Independent Code\n"
58 " --enable-pic enable Position Independent Code\n"
5957 " --disable-valgrind omit valgrind client requests in debug builds\n"
6058 " --enable-valgrind include valgrind client requests release builds\n"
6159 " --emit [asm|bin|llvm-ir] emit a specific file format as compilation output\n"
60 " -fPIC enable Position Independent Code\n"
61 " -fno-PIC disable Position Independent Code\n"
6262 " -ftime-report print timing diagnostics\n"
6363 " --libc [file] Provide a file which specifies libc paths\n"
6464 " --name [name] override output name\n"
......@@ -642,9 +642,9 @@ int main(int argc, char **argv) {
642642 valgrind_support = ValgrindSupportEnabled;
643643 } else if (strcmp(arg, "--disable-valgrind") == 0) {
644644 valgrind_support = ValgrindSupportDisabled;
645 } else if (strcmp(arg, "--enable-pic") == 0) {
645 } else if (strcmp(arg, "-fPIC") == 0) {
646646 want_pic = WantPICEnabled;
647 } else if (strcmp(arg, "--disable-pic") == 0) {
647 } else if (strcmp(arg, "-fno-PIC") == 0) {
648648 want_pic = WantPICDisabled;
649649 } else if (strcmp(arg, "--system-linker-hack") == 0) {
650650 system_linker_hack = true;