VirtualBox

儲存庫 kBuild 的更動 2283


忽略:
時間撮記:
2009-2-24 上午04:54:00 (16 年 以前)
作者:
bird
訊息:

incdep.c: If we find LD_PRELOAD on linux, assume the worst and disable threading (try fixing the hppa debian build break generically).

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/kmk/incdep.c

    r2243 r2283  
    598598#endif
    599599
    600   if (getenv("KMK_THREADS_DISABLED"))
    601     return 0;
    602   if (getenv("KMK_THREADS_ENABLED"))
     600  /* Generic overrides. */
     601  if (getenv ("KMK_THREADS_DISABLED"))
     602    {
     603      message (1, "Threads disabled (environment)");
     604      return 0;
     605    }
     606  if (getenv ("KMK_THREADS_ENABLED"))
    603607    return 1;
    604 #if defined(__gnu_linux__) || defined(__linux__)
    605   if (getenv("FAKEROOTKEY"))
    606     return 0;
    607   if (getenv("FAKEROOTUID"))
    608     return 0;
    609   if (getenv("FAKEROOTGID"))
    610     return 0;
    611   if (getenv("FAKEROOTEUID"))
    612     return 0;
    613   if (getenv("FAKEROOTEGID"))
    614     return 0;
    615   if (getenv("FAKEROOTSUID"))
    616     return 0;
    617   if (getenv("FAKEROOTSGID"))
    618     return 0;
    619   if (getenv("FAKEROOTFUID"))
    620     return 0;
    621   if (getenv("FAKEROOTFGID"))
    622     return 0;
    623   if (getenv("FAKEROOTDONTTRYCHOWN"))
    624     return 0;
    625   if (getenv("FAKEROOT_FD_BASE"))
    626     return 0;
    627   if (getenv("FAKEROOT_DB_SEARCH_PATHS"))
    628     return 0;
    629 #endif /* GNU/Linux */
     608
     609#if defined (__gnu_linux__) || defined (__linux__)
     610  /* Try detect fakeroot. */
     611  if (getenv ("FAKEROOTKEY")
     612   || getenv ("FAKEROOTUID")
     613   || getenv ("FAKEROOTGID")
     614   || getenv ("FAKEROOTEUID")
     615   || getenv ("FAKEROOTEGID")
     616   || getenv ("FAKEROOTSUID")
     617   || getenv ("FAKEROOTSGID")
     618   || getenv ("FAKEROOTFUID")
     619   || getenv ("FAKEROOTFGID")
     620   || getenv ("FAKEROOTDONTTRYCHOWN")
     621   || getenv ("FAKEROOT_FD_BASE")
     622   || getenv ("FAKEROOT_DB_SEARCH_PATHS"))
     623    {
     624      message (1, "Threads disabled (fakeroot)");
     625      return 0;
     626    }
     627
     628  /* LD_PRELOAD could indicate undetected debian fakeroot or some
     629     other ingenius library which cannot deal correctly with threads. */
     630  if (getenv ("LD_PRELOAD"))
     631    {
     632      message (1, "Threads disabled (LD_PRELOAD)");
     633      return 0;
     634    }
     635
     636#elif defined(__APPLE__) \
     637   || defined(__sun__) || defined(__SunOS__) || defined(__sun) || defined(__SunOS) \
     638   || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
     639  /* No broken preload libraries known to be in common use on these platforms... */
     640
     641#elif defined(_MSC_VER) || defined(_WIN32) || defined(__OS2__)
     642  /* No preload mess to care about. */
     643
     644#else
     645# error "Add your self to the appropriate case above and send a patch to bird."
     646#endif
    630647  return 1;
    631648}
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette