Skip to content

Commit 16e9839

Browse files
committed
glpk, libmicrohttpd, m4: build fixes
1 parent be99dd7 commit 16e9839

File tree

8 files changed

+16
-7
lines changed

8 files changed

+16
-7
lines changed

subprojects/packagefiles/glpk/examples/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ glpsol = executable(
66
include_directories: inc,
77
dependencies: [glpk_dep, libm_dep],
88
install: true,
9+
override_options: override_opts,
910
)
1011

1112
test(

subprojects/packagefiles/glpk/meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ project(
33
'c',
44
license: 'GPL-3.0-or-later',
55
version: '5.0',
6+
meson_version: '>=0.50.0',
67
)
78

9+
override_opts = ['c_std=c89']
10+
811
cc = meson.get_compiler('c')
912

1013
deps = []
File renamed without changes.

subprojects/packagefiles/glpk/src/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ glpk = library(
221221
vs_module_defs: 'glpk.def',
222222
dependencies: deps,
223223
install: true,
224+
override_options: override_opts,
224225
)
225226

226227
install_headers('glpk.h')

subprojects/packagefiles/libmicrohttpd/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ project(
22
'libmicrohttpd',
33
'c',
44
version: '0.9.77',
5+
license: 'LGPL-2.1-or-later OR GPL-2.0-or-later WITH eCos-exception-2.0',
56
meson_version: '>=0.49.0',
67
default_options: ['warning_level=1'],
78
)

subprojects/packagefiles/m4/lib/meson.build

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -904,13 +904,13 @@ cdata.set_quoted('SYSCMD_SHELL', syscmd_shell)
904904
cdata.set_quoted('VERSION', '1.4.19')
905905

906906
if (cc.get_define(
907-
'O_BINARY',
907+
'O_BINARY',
908908
prefix: '#include<fcntl.h>',
909-
) == '')
909+
) == '')
910910
if (cc.get_define(
911-
'_O_BINARY',
911+
'_O_BINARY',
912912
prefix: '#include<fcntl.h>',
913-
) != '')
913+
) != '')
914914
cdata.set('O_BINARY', '_O_BINARY')
915915
cdata.set('O_TEXT', '_O_TEXT')
916916
else
@@ -2149,6 +2149,7 @@ m4_lib = static_library(
21492149
m4lib_src,
21502150
m4_lib_nononnull_h,
21512151
c_args: libm4_c_args,
2152+
override_options: override_opts,
21522153
)
21532154
if host_machine.system() == 'windows'
21542155
m4_dep = declare_dependency(

subprojects/packagefiles/m4/meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ project(
33
'c',
44
version: '1.4.19',
55
license: 'GPL-3.0-or-later',
6-
default_options: ['c_std=c11'],
7-
meson_version: '>= 0.59.0', # required for executable(..., win_subsystem: ...)
6+
meson_version: '>= 0.56.0',
87
)
98

10-
message('updates to the directory work')
9+
override_opts = ['c_std=c11']
10+
1111
subdir('lib')
1212
subdir('src')
1313
if get_option('enable_tests')

subprojects/packagefiles/m4/src/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ m4 = executable(
2424
nononnull_h,
2525
dependencies: m4_dep,
2626
install: true,
27+
override_options: override_opts,
2728
)
29+
meson.override_find_program('m4', m4)

0 commit comments

Comments
 (0)