summaryrefslogtreecommitdiffstats
path: root/patches/procps-3.2.7/generic/20_module_mk_shared.dpatch
blob: 7b3cd678cafa3747caeca796fc7a4e8852aac9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/sh -e
## 20_module_mk_shared.dpatch by Craig Small <csmall@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Made SHARED variable overwritable

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
       -patch) patch $patch_opts -p1 < $0;;
       -unpatch) patch $patch_opts -p1 -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argum
ent"
                exit 1;;
esac

exit 0
@DPATCH@
diff -urNad procps-3.2.7~/proc/module.mk procps-3.2.7/proc/module.mk
--- procps-3.2.7~/proc/module.mk	2006-06-27 08:24:51.000000000 +1000
+++ procps-3.2.7/proc/module.mk	2006-06-27 08:25:43.000000000 +1000
@@ -17,7 +17,7 @@
 # numbers for future use, the ELF soname can be set equal to the
 # file name until some future date when a stable ABI is declared.
 
-SHARED     := 1
+SHARED     ?= 1
 
 # for lib$(NAME).so and /usr/include/($NAME) and such
 NAME       :=  proc