updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / gcc-gcj / libjava-disable-static.dpatch
blob23f6846c3f367965c21835cce32bdd90593761dc
1 #! /bin/sh -e
3 # DP: Disable building the static libjava.
5 dir=
6 if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9 elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
13 case "$1" in
14 -patch)
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
17 -unpatch)
18 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
21 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
22 exit 1
23 esac
24 exit 0
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
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