Skip to content

Commit 19c1329

Browse files
Fix compilation error on OBS
-fPIC is passed as default, make sure its disabled when testing gcc. Signed-off-by: Giuliano Belinassi <gbelinassi@suse.de>
1 parent 1f8ed41 commit 19c1329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ gcc_install_dir = ''
5353
build_dir_absolute_path = meson.build_root()
5454
simple_program_file = configure_file(output: 'simple_program.c', input: 'simple_program.c.in', copy: true )
5555

56-
gcc_output = run_command(gcc.full_path(), '-v', '-o', build_dir_absolute_path / 'simple_program.out',
56+
gcc_output = run_command(gcc.full_path(), '-fno-PIC', '-v', '-o', build_dir_absolute_path / 'simple_program.out',
5757
build_dir_absolute_path / 'simple_program.c', check: true).stderr().strip().split('\n')
5858
foreach line : gcc_output
5959
if line.contains('crtbegin.o')

0 commit comments

Comments
 (0)