Skip to content

Commit

Permalink
Fix pthread stack size on 32-bit platforms
Browse files Browse the repository at this point in the history
For some reason which remains mysterious to me the shared library
which calls pthread_create() must be linked with -pthread.  If this
is not done on 32-bit system the default ulimit stack size is used.
Surprisingly, on a 64-bit system the stack limit specified by the
pthread_attr is honored even when -pthread is not passed when linking
the shared library.
  • Loading branch information
behlendorf committed Jul 21, 2010
1 parent 84f737b commit 6d72cb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libzpool/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,5 @@ libzpool_la_SOURCES = \
${top_srcdir}/module/zfs/include/sys/fm/protocol.h \
${top_srcdir}/module/zfs/include/sys/fm/util.h \
${top_srcdir}/module/zfs/include/sys/fm/fs/zfs.h

libzpool_la_LDFLAGS = -pthread

0 comments on commit 6d72cb7

Please sign in to comment.