Change LGPL-2.1+ to LGPL-2.1-or-later
[platform/upstream/json-glib.git] / packaging / apply_PIE_option.patch
1 diff --git a/json-glib/meson.build b/json-glib/meson.build
2 index e13e688..3f6856c 100644
3 --- a/json-glib/meson.build
4 +++ b/json-glib/meson.build
5 @@ -137,6 +137,7 @@ foreach t: tools
6  
7    executable(bin_name, bin_sources,
8               c_args: json_c_args,
9 +             link_args: '-pie',
10               dependencies: json_glib_dep,
11               install: true)
12  endforeach
13 diff --git a/json-glib/tests/meson.build b/json-glib/tests/meson.build
14 index 1eb56c8..ad1b24b 100644
15 --- a/json-glib/tests/meson.build
16 +++ b/json-glib/tests/meson.build
17 @@ -46,6 +46,7 @@ foreach t: tests
18    exe = executable(
19      t, '@0@.c'.format(t),
20      c_args: json_c_args,
21 +    link_args: '-pie',
22      install: true,
23      install_dir: installed_test_bindir,
24      dependencies: [ json_glib_dep, ],
25 diff --git a/meson.build b/meson.build
26 index a5e945b..cab2d8f 100644
27 --- a/meson.build
28 +++ b/meson.build
29 @@ -131,6 +131,7 @@ if get_option('default_library') != 'static'
30    endif
31  endif
32  
33 +test_cflags += '-fPIC'
34  common_cflags = cc.get_supported_arguments(test_cflags)
35  
36  if get_option('debug')