Commit 044c39af authored by eduard's avatar eduard

#19: OpenBSD build: specify the -L argument when compiling the app.

  - This solves 'undefined symbols' error due to missing -L/usr/lib/local
    flag.
parent e31a7ba9
......@@ -63,10 +63,20 @@ dia_sources = [
'main.c'
]
#FIXME: this is workaround for openbsd where libraries are in /usr/lib/local
pkg_config = find_program('pkg-config')
pkg_config_libdir = run_command(pkg_config, '--libs-only-L', 'libxml-2.0').stdout().strip()
dia_link_args = []
if pkg_config_libdir != ''
dia_link_args += pkg_config_libdir
endif
executable('dia',
dia_sources + [dia_app_icons_h],
dependencies : [libgtk_dep, libxml_dep, libm_dep],
link_with : libdia,
link_with : [libdia],
link_args: dia_link_args,
include_directories : [configuration_inc, libdia_inc],
gui_app : true,
install : true,
......
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