diff options
author | Khem Raj <raj.khem@gmail.com> | 2009-01-25 20:47:49 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2009-01-25 20:47:49 -0800 |
commit | ec91180cc7efb7fb87a3c0be5de00fa668336813 (patch) | |
tree | 6535711badd9c51eade5fbc9cb004d7cd7f98324 /packages/gcc/gcc-4.3.3/debian/libjava-armel-ldflags.dpatch | |
parent | 65aa394746b444a8adf1a43a52161b17b8165d51 (diff) |
gcc-4.3.3: New recipe
Diffstat (limited to 'packages/gcc/gcc-4.3.3/debian/libjava-armel-ldflags.dpatch')
-rw-r--r-- | packages/gcc/gcc-4.3.3/debian/libjava-armel-ldflags.dpatch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/gcc/gcc-4.3.3/debian/libjava-armel-ldflags.dpatch b/packages/gcc/gcc-4.3.3/debian/libjava-armel-ldflags.dpatch new file mode 100644 index 0000000000..ecaddb61e0 --- /dev/null +++ b/packages/gcc/gcc-4.3.3/debian/libjava-armel-ldflags.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh -e + +# DP: Adjust libjava extra_ldflags for armel. + +dir= +if [ $# -eq 3 -a "$2" = '-d' ]; then + pdir="-d $3" + dir="$3/" +elif [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) + patch $pdir -f --no-backup-if-mismatch -p0 < $0 + cd ${dir}libjava && autoconf + ;; + -unpatch) + patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 + rm -f ${dir}libjava/configure + ;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +esac +exit 0 + +--- libjava/configure.ac~ 2008-01-14 15:45:26.698717101 +0100 ++++ libjava/configure.ac 2008-01-14 15:47:37.460689616 +0100 +@@ -807,7 +807,7 @@ + # Some of the ARM unwinder code is actually in libstdc++. We + # could in principle replicate it in libgcj, but it's better to + # have a dependency on libstdc++. +- extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++' ++ extra_ldflags='-L$(here)/../libstdc++-v3/src -L$(here)/../libstdc++-v3/src/.libs -lstdc++' + LIBSTDCXXSPEC=-lstdc++ + LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++" + ;; |