~ubuntu-branches/ubuntu/precise/libpthread-workqueue/precise

« back to all changes in this revision

Viewing changes to .pc/as-needed.patch/config.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mark Heily
  • Date: 2011-07-16 22:13:33 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110716221333-bvkopimc1zt6iae4
Tags: 0.8.2-1
* New upstream version.
* Fix FTBFS: use time_t instead of unsigned int (Closes: #633829)
* Prevent a lintian warning caused by 'Author(s)' in debian/copyright 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
program="libpthread_workqueue"
2
 
version="0.7"
3
 
abi_major="0"
4
 
abi_minor="0"
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"
7
 
ldflags="-lpthread -lrt"
8
 
sources='src/api.c src/$(API)/manager.c src/$(API)/thread_info.c src/witem_cache.c src/$(API)/thread_rt.c'
9
 
libdepends=""
10
 
deps="src/*.h"
11
 
mans="pthread_workqueue.3"
12
 
headers="include/pthread_workqueue.h"
13
 
extra_dist="LICENSE"
14
 
subdirs=""
15
 
 
16
 
# Package metadata
17
 
pkg_summary="pthread_workqueue library"
18
 
pkg_description="pthread_workqueue library"
19
 
license="BSD"
20
 
author="Mark Heily"
21
 
 
22
 
pre_configure_hook() {
23
 
  if [ "$debug" = "yes" ] ; then
24
 
      cflags="$cflags -g3 -O0 -DPTHREAD_WORKQUEUE_DEBUG -rdynamic"
25
 
  else
26
 
      cflags="$cflags -g -O2"
27
 
  fi
28
 
  check_header err.h
29
 
}
30
 
 
31
 
post_configure_hook() {
32
 
 
33
 
    cflags="$cflags"
34
 
    case "$target" in
35
 
    windows)
36
 
        cflags="$cflags -mthreads"
37
 
        ldflags="$ldflags -mthreads"
38
 
        ;;
39
 
    solaris)
40
 
        # TODO: would like to have -fvisibility=hidden but not supported
41
 
        #       by SFWgcc
42
 
        #
43
 
        cflags="$cflags -m64 -fpic"
44
 
        ldflags="$ldflags -m64 -fpic -lumem"
45
 
        ;;
46
 
    *)
47
 
        if [ "`uname -m`" = "x86_64" ] ; then
48
 
            arch_flags="-m64"
49
 
        else
50
 
            arch_flags=""
51
 
        fi
52
 
        cflags="$cflags $arch_flags -fpic -fvisibility=hidden -pthread"
53
 
        ldflags="$ldflags $arch_flags -fpic -pthread"
54
 
        ;;
55
 
    esac
56
 
}