1 program="libpthread_workqueue"
5 abi_version="$abi_major.$abi_minor"
6 cflags="-Wall -Wextra -Werror -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ -D_GNU_SOURCE -std=c99 -I./include -I./src"
9 sources='src/api.c src/$(API)/manager.c src/$(API)/thread_info.c src/witem_cache.c src/$(API)/thread_rt.c'
12 mans="pthread_workqueue.3"
13 headers="include/pthread_workqueue.h"
18 pkg_summary="pthread_workqueue library"
19 pkg_description="pthread_workqueue library"
23 pre_configure_hook() {
24 if [ "$debug" = "yes" ] ; then
25 cflags="$cflags -g3 -O0 -DPTHREAD_WORKQUEUE_DEBUG -rdynamic"
27 cflags="$cflags -g -O2"
32 post_configure_hook() {
37 cflags="$cflags -mthreads"
38 ldflags="$ldflags -mthreads"
41 # TODO: would like to have -fvisibility=hidden but not supported
44 cflags="$cflags -m64 -fpic"
45 ldflags="$ldflags -m64 -fpic -lumem"
48 if [ "`uname -m`" = "x86_64" ] ; then
53 cflags="$cflags $arch_flags -fpic -fvisibility=hidden -pthread"
54 ldflags="$ldflags $arch_flags -fpic -pthread"