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) {...@@ -54,11 +54,11 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) {
54 " --cache [auto|off|on] build in cache, print output path to stdout\n"54 " --cache [auto|off|on] build in cache, print output path to stdout\n"
55 " --color [auto|off|on] enable or disable colored error messages\n"55 " --color [auto|off|on] enable or disable colored error messages\n"
56 " --disable-gen-h do not generate a C header file (.h)\n"56 " --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"
59 " --disable-valgrind omit valgrind client requests in debug builds\n"57 " --disable-valgrind omit valgrind client requests in debug builds\n"
60 " --enable-valgrind include valgrind client requests release builds\n"58 " --enable-valgrind include valgrind client requests release builds\n"
61 " --emit [asm|bin|llvm-ir] emit a specific file format as compilation output\n"59 " --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"
62 " -ftime-report print timing diagnostics\n"62 " -ftime-report print timing diagnostics\n"
63 " --libc [file] Provide a file which specifies libc paths\n"63 " --libc [file] Provide a file which specifies libc paths\n"
64 " --name [name] override output name\n"64 " --name [name] override output name\n"
...@@ -642,9 +642,9 @@ int main(int argc, char **argv) {...@@ -642,9 +642,9 @@ int main(int argc, char **argv) {
642 valgrind_support = ValgrindSupportEnabled;642 valgrind_support = ValgrindSupportEnabled;
643 } else if (strcmp(arg, "--disable-valgrind") == 0) {643 } else if (strcmp(arg, "--disable-valgrind") == 0) {
644 valgrind_support = ValgrindSupportDisabled;644 valgrind_support = ValgrindSupportDisabled;
645 } else if (strcmp(arg, "--enable-pic") == 0) {645 } else if (strcmp(arg, "-fPIC") == 0) {
646 want_pic = WantPICEnabled;646 want_pic = WantPICEnabled;
647 } else if (strcmp(arg, "--disable-pic") == 0) {647 } else if (strcmp(arg, "-fno-PIC") == 0) {
648 want_pic = WantPICDisabled;648 want_pic = WantPICDisabled;
649 } else if (strcmp(arg, "--system-linker-hack") == 0) {649 } else if (strcmp(arg, "--system-linker-hack") == 0) {
650 system_linker_hack = true;650 system_linker_hack = true;