summaryrefslogtreecommitdiff
path: root/editors/biew/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2013-07-02 12:17:30 +0000
committerjoerg <joerg>2013-07-02 12:17:30 +0000
commitd3f5e01891a3159330421a3149fff984dc9150ef (patch)
tree0f8c47ed9876bee1c78f1f090a955c9cb72a3278 /editors/biew/patches
parent904e2be795caf4a3924c5e2fd9e48bebc567fdec (diff)
downloadpkgsrc-d3f5e01891a3159330421a3149fff984dc9150ef.tar.gz
Don't try to guess the compiler type based on the name. Fix assembler
constraint. Disable integrated assembler for clang due to the misuse.
Diffstat (limited to 'editors/biew/patches')
-rw-r--r--editors/biew/patches/patch-biewlib_sysdep_x86__64_aclib__template.c13
-rw-r--r--editors/biew/patches/patch-configure21
2 files changed, 34 insertions, 0 deletions
diff --git a/editors/biew/patches/patch-biewlib_sysdep_x86__64_aclib__template.c b/editors/biew/patches/patch-biewlib_sysdep_x86__64_aclib__template.c
new file mode 100644
index 00000000000..e4885c5196c
--- /dev/null
+++ b/editors/biew/patches/patch-biewlib_sysdep_x86__64_aclib__template.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-biewlib_sysdep_x86__64_aclib__template.c,v 1.1 2013/07/02 12:17:30 joerg Exp $
+
+--- biewlib/sysdep/x86_64/aclib_template.c.orig 2013-07-01 19:27:11.000000000 +0000
++++ biewlib/sysdep/x86_64/aclib_template.c
+@@ -441,7 +441,7 @@ static void __FASTCALL__ RENAME(ShortsTo
+ ::"r"(srcptr):"memory");
+ nlimit--;
+ __asm __volatile("packuswb (%0), %%xmm0\n\t"
+- ::"g"(&srcptr[REGMM_SIZE]):"memory");
++ ::"r"(&srcptr[REGMM_SIZE]):"memory");
+ srcptr+=step*2;
+ __asm __volatile("movdqa %%xmm0, (%0)\n\t"
+ ::"r"(destbuffptr):"memory");
diff --git a/editors/biew/patches/patch-configure b/editors/biew/patches/patch-configure
new file mode 100644
index 00000000000..cfee02a2497
--- /dev/null
+++ b/editors/biew/patches/patch-configure
@@ -0,0 +1,21 @@
+$NetBSD: patch-configure,v 1.1 2013/07/02 12:17:30 joerg Exp $
+
+--- configure.orig 2013-07-01 13:23:18.000000000 +0000
++++ configure
+@@ -500,16 +500,6 @@ _cdefos="-DDATADIR='\"$_datadir\"'"
+ cc_name=`$_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1`
+ cc_version=`$_cc -dumpversion`
+
+-echocheck "C compiler name"
+-echores $cc_name
+-case $cc_name in
+- gcc)
+- ;;
+- *)
+- die "Unknown compiler name $cc_name. Project required GCC"
+- ;;
+-esac
+-
+ echocheck "C compiler version"
+ echores $cc_version
+ case $cc_version in