aboutsummaryrefslogtreecommitdiff
path: root/emulators/wine/files
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2009-10-10 10:34:16 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2009-10-10 10:34:16 +0000
commit9496e58a0728ef85ac7a30c98d335522cf1643c4 (patch)
tree00b2e23698b7fe7097b452aa83eacaf00b394e19 /emulators/wine/files
parenteb75452ba2659c3703889752da489c865a4c6749 (diff)
Notes
Diffstat (limited to 'emulators/wine/files')
-rw-r--r--emulators/wine/files/patch-tools-winebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/emulators/wine/files/patch-tools-winebuild b/emulators/wine/files/patch-tools-winebuild
new file mode 100644
index 000000000000..2c988a437568
--- /dev/null
+++ b/emulators/wine/files/patch-tools-winebuild
@@ -0,0 +1,31 @@
+diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c
+index e0cd8bc..6008ef4 100644
+--- tools/winebuild/utils.c
++++ tools/winebuild/utils.c
+@@ -297,9 +297,23 @@ const char *get_ld_command(void)
+
+ if (force_pointer_size)
+ {
+- const char *args = (target_platform == PLATFORM_APPLE) ?
+- ((force_pointer_size == 8) ? " -arch x86_64" : " -arch i386") :
+- ((force_pointer_size == 8) ? " -m elf_x86_64" : " -m elf_i386");
++ const char *args;
++
++ switch (target_platform)
++ {
++ case PLATFORM_APPLE:
++ args = (force_pointer_size == 8) ? " -arch x86_64"
++ : " -arch i386";
++ break;
++ case PLATFORM_FREEBSD:
++ args = (force_pointer_size == 8) ? " -m elf_x86_64"
++ : " -m elf_i386_fbsd";
++ break;
++ default:
++ args = (force_pointer_size == 8) ? " -m elf_x86_64"
++ : " -m elf_i386";
++ }
++
+ ld_command = xrealloc( ld_command, strlen(ld_command) + strlen(args) + 1 );
+ strcat( ld_command, args );
+ }