pkgsrc-Bugs archive

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

Re: pkg/54298: devel/glib2 fails to build



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

From: Patrick Welche <prlw1%cam.ac.uk@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/54298: devel/glib2 fails to build
Date: Tue, 25 Jun 2019 10:22:21 +0100

 On Tue, Jun 25, 2019 at 09:15:01AM +0000, Patrick Welche wrote:
 >  (I'll try to paper over this by making meson also test for the macro.)
 
 Actually, meson.build already tests for this.
 
 int main() {
   volatile int atomic = 2;
   __sync_bool_compare_and_swap (&atomic, 2, 3);
   return 0;
 }
 
 compiled successfully for you. How about
 
 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
 #error "compiler has atomic ops, but doesn't define __GCC_HAVE_SYNC_COMPARE_AND_
 SWAP_4"
 #endif
 
 ?
 
 (If yes, then gatomic.c should compile too.)
 


Home | Main Index | Thread Index | Old Index