summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.1/debian/libjava-disable-static.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/libjava-disable-static.dpatch')
-rw-r--r--meta/packages/gcc/gcc-4.3.1/debian/libjava-disable-static.dpatch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/libjava-disable-static.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/libjava-disable-static.dpatch
new file mode 100644
index 0000000000..23f6846c3f
--- /dev/null
+++ b/meta/packages/gcc/gcc-4.3.1/debian/libjava-disable-static.dpatch
@@ -0,0 +1,45 @@
1#! /bin/sh -e
2
3# DP: Disable building the static libjava.
4
5dir=
6if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
12fi
13case "$1" in
14 -patch)
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
16 ;;
17 -unpatch)
18 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
19 ;;
20 *)
21 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
22 exit 1
23esac
24exit 0
25
26--- Makefile.in~ 2007-03-26 10:44:16.881179540 +0200
27+++ Makefile.in 2007-03-26 10:48:27.564961048 +0200
28@@ -43901,7 +43901,7 @@
29 rm -f no-such-file || : ; \
30 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
31 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
32- --target=${target_alias} $${srcdiroption} \
33+ --target=${target_alias} --disable-static $${srcdiroption} \
34 || exit 1
35 @endif target-libjava
36
37@@ -44783,7 +44783,7 @@
38 rm -f no-such-file || : ; \
39 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
40 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
41- --target=${target_alias} $${srcdiroption} \
42+ --target=${target_alias} --disable-static $${srcdiroption} \
43 || exit 1
44 @endif target-boehm-gc
45