Commit 83daed87 authored by delthas's avatar delthas Committed by Patrick
Browse files

win32: Fix building executables with invalid entrypoints

Windows builds of the GTK frontend use the pie flag to compile
hexchat.exe. Windows needs an explicit entrypoint when compiling with
--pie, otherwise an invalid executable is created.

This sets the entrypoint of the executable on Windows (as it is
currently set in the Visual Studio project files).

This fixes a critical build issue which prevents all Windows builds
using Meson from working.
parent 5d5838e7
......@@ -80,6 +80,10 @@ resources = gnome.compile_resources('resources',
extra_args: ['--manual-register']
)
if host_machine.system() == 'windows'
hexchat_gtk_ldflags += '-Wl,-e,mainCRTStartup'
endif
executable('hexchat',
sources: resources + hexchat_gtk_sources,
dependencies: hexchat_gtk_deps,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment