--- tools/winebuild/build.h | 1 + tools/winebuild/main.c | 2 ++ tools/winebuild/utils.c | 3 +++ 3 files changed, 6 insertions(+)
diff --git a/tools/winebuild/build.h b/tools/winebuild/build.h index 90e8e34e44..9596743406 100644 --- a/tools/winebuild/build.h +++ b/tools/winebuild/build.h @@ -150,6 +150,7 @@ enum target_platform PLATFORM_UNSPECIFIED, PLATFORM_APPLE, PLATFORM_FREEBSD, + PLATFORM_OPENBSD, PLATFORM_SOLARIS, PLATFORM_WINDOWS }; diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c index f4656f9051..1188bf89fd 100644 --- a/tools/winebuild/main.c +++ b/tools/winebuild/main.c @@ -65,6 +65,8 @@ enum target_cpu target_cpu = CPU_ARM64; enum target_platform target_platform = PLATFORM_APPLE; #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) enum target_platform target_platform = PLATFORM_FREEBSD; +#elif defined(__OpenBSD__) +enum target_platform target_platform = PLATFORM_OPENBSD; #elif defined(__sun) enum target_platform target_platform = PLATFORM_SOLARIS; #elif defined(_WIN32) diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c index 6e01f1a526..bcebdc08ad 100644 --- a/tools/winebuild/utils.c +++ b/tools/winebuild/utils.c @@ -445,6 +445,9 @@ struct strarray get_ld_command(void) case PLATFORM_FREEBSD: strarray_add( &args, "-m", (force_pointer_size == 8) ? "elf_x86_64_fbsd" : "elf_i386_fbsd", NULL ); break; + case PLATFORM_OPENBSD: + strarray_add( &args, "-m", (force_pointer_size == 8) ? "elf_x86_64_obsd" : "elf_i386_obsd", NULL ); + break; default: switch(target_cpu) {