VirtualBox

Changeset 2091 in kBuild


Ignore:
Timestamp:
Nov 19, 2008 11:21:53 PM (17 years ago)
Author:
bird
Message:

kmk: Don't bootstrap with threads and disable them for FreeBSD.x86 since that doesn't work in my 6.3 jail.

Location:
trunk/src/kmk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/Makefile.am

    r2062 r2091  
    125125        -DCONFIG_WITH_EXTENDED_NOTPARALLEL \
    126126        -DCONFIG_WITH_INCLUDEDEP \
     127        -DCONFIG_WITHOUT_THREADS \
    127128        -DCONFIG_WITH_VALUE_LENGTH \
    128129        -DCONFIG_WITH_RSORT \
  • trunk/src/kmk/Makefile.kmk

    r2089 r2091  
    214214#kmk_DEFS.solaris += HAVE_MALLINFO
    215215
    216 kmk_LIBS.freebsd = pthread
     216kmk_LIBS.freebsd.amd64 = pthread
     217kmk_DEFS.freebsd.x86 = CONFIG_WITHOUT_THREADS
    217218
    218219#
  • trunk/src/kmk/incdep.c

    r2063 r2091  
    344344incdep_lock(void)
    345345{
    346 #ifdef HAVE_PTHREAD
     346#if defined (HAVE_PTHREAD) && !defined (CONFIG_WITHOUT_THREADS)
    347347  pthread_mutex_lock (&incdep_mtx);
    348348#elif defined (WINDOWS32)
     
    357357incdep_unlock(void)
    358358{
    359 #ifdef HAVE_PTHREAD
     359#if defined (HAVE_PTHREAD) && !defined (CONFIG_WITHOUT_THREADS)
    360360  pthread_mutex_unlock (&incdep_mtx);
    361361#elif defined(WINDOWS32)
     
    370370incdep_signal_done (void)
    371371{
    372 #ifdef HAVE_PTHREAD
     372#if defined (HAVE_PTHREAD) && !defined (CONFIG_WITHOUT_THREADS)
    373373  pthread_cond_broadcast (&incdep_cond_done);
    374374#elif defined (WINDOWS32)
     
    385385incdep_wait_done (void)
    386386{
    387 #ifdef HAVE_PTHREAD
     387#if defined (HAVE_PTHREAD) && !defined (CONFIG_WITHOUT_THREADS)
    388388  pthread_cond_wait (&incdep_cond_done, &incdep_mtx);
    389389
     
    411411incdep_signal_todo (void)
    412412{
    413 #ifdef HAVE_PTHREAD
     413#if defined (HAVE_PTHREAD) && !defined (CONFIG_WITHOUT_THREADS)
    414414  pthread_cond_broadcast (&incdep_cond_todo);
    415415#elif defined(WINDOWS32)
     
    426426incdep_wait_todo (void)
    427427{
    428 #ifdef HAVE_PTHREAD
     428#if defined (HAVE_PTHREAD) && !defined (CONFIG_WITHOUT_THREADS)
    429429  pthread_cond_wait (&incdep_cond_todo, &incdep_mtx);
    430430
     
    594594incdep_are_threads_enabled (void)
    595595{
     596#if defined (CONFIG_WITHOUT_THREADS)
     597  return 0;
     598#endif
     599
    596600  if (getenv("KMK_THREADS_DISABLED"))
    597601    return 0;
     
    656660  /* create the mutex and two condition variables / event objects. */
    657661
    658 #ifdef HAVE_PTHREAD
     662#if defined (HAVE_PTHREAD) && !defined (CONFIG_WITHOUT_THREADS)
    659663  rc = pthread_mutex_init (&incdep_mtx, NULL);
    660664  if (rc)
     
    729733
    730734          /* create the thread. */
    731 #ifdef HAVE_PTHREAD
     735#if defined (HAVE_PTHREAD) && !defined (CONFIG_WITHOUT_THREADS)
    732736          rc = pthread_attr_init (&attr);
    733737          if (rc)
Note: See TracChangeset for help on using the changeset viewer.

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