[patch #8585] ax_pthread and different CFLAGS and LDFLAGS

Pavel Janík <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
Follow-up Comment #3, patch #8585 (project autoconf-archive):

Hi,

no problem for the delay. Thank you for your work!

I have replaced our (Bitcoin Core) copy of ax_pthread.m4 with draft3.

configure output changes (diff against our master):

-checking if compiler needs -Werror to reject unknown flags... yes
-checking whether pthreads work with -pthread... yes
+checking whether gcc is Clang... yes
+checking whether Clang needs flag to prevent "argument unused" warning when
linking with -pthread... -Qunused-arguments
 checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
-checking if more special flags are required for pthreads... -D_THREAD_SAFE
+checking whether more special flags are required for pthreads... no

Ie. expected.

The build finished without issues on OS X without these messages:

-clang: warning: argument unused during compilation: '-pthread'
-clang: warning: argument unused during compilation: '-pie'
-clang: warning: argument unused during compilation: '-pthread'

Ie. it works perfectly for our case.

Thank you!


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8585>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.