gprolog-pic.patch 514 B

1234567891011121314
  1. --- a/src/Ma2Asm/x86_64_any.c
  2. +++ b/src/Ma2Asm/x86_64_any.c
  3. @@ -210,8 +210,8 @@
  4. strcpy(asm_reg_cp, Off_Reg_Bank(MAP_OFFSET_CP));
  5. #endif
  6. -#ifdef M_x86_64_darwin
  7. - pic_code = 1; /* NB: on darwin everything is PIC code */
  8. +#if defined(M_x86_64_darwin) || defined(M_x86_64_bsd) || defined(M_x86_64_linux)
  9. + pic_code = 1; /* NB: on darwin and BSD everything is PIC code, last gcc 6 needs this for linux */
  10. #elif defined(_WIN32)
  11. pic_code = 0; /* NB: on MinGW nothing is needed for PIC code */
  12. #endif