pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/51646: x11/modular-xorg-server fails to configure



The following reply was made to PR pkg/51646; it has been noted by GNATS.

From: coypu%SDF.ORG@localhost
To: gnats-bugs%netbsd.org@localhost
Cc: wiz%netbsd.org@localhost
Subject: Re: pkg/51646: x11/modular-xorg-server fails to configure
Date: Wed, 4 Jan 2017 14:44:35 +0000

 currently we have ax_pthread_ok = no all the time.
 
         if test x"$ax_pthread_ok" = xno; then
                 PTHREAD_LIBS=""
                 PTHREAD_CFLAGS=""
         fi
 (indentation irrelevant, it is unconditional.)
 
 Normally, there is:
 # Create a list of thread flags to try.  Items starting with a "-" are
 # C compiler flags, and other items are library names, except for "none"
 # which indicates that we try without any flags at all, and "pthread-config"
 # which is a program returning the flags for the Pth emulation library.
 
 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
 
 we set it on netbsd to ""
 
 then...
 if test x"$ax_pthread_ok" = xno; then
 for flag in $ax_pthread_flags; do
 
         case $flag in
                 none)
                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
                 ;;
 
                 -*)
                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
                 PTHREAD_CFLAGS="$flag"
                 ;;
 
                 pthread-config)
                 # Extract the first word of "pthread-config", so it can be a program name with args.
 
 neither of this cases applies. and PTHREAD_CFLAGS does not get set back.
 
 it will attempt ax_pthread_flags and ignore PTHREAD_CFLAGS environment.
 we tell it to try nothing. nothing doesn't work since we need -pthread.
 


Home | Main Index | Thread Index | Old Index