printf_lib = static_library('gstprintf',
printf_sources,
include_directories : [configinc],
- c_args : printf_args + pic_args,
+ c_args : printf_args,
install : false,
+ pic: true,
dependencies : [glib_dep])
libcheck_files,
include_directories : [ configinc, internal_check_h_inc ],
dependencies : [rt_lib, mathlib],
- c_args: gst_c_args + pic_args)
+ c_args: gst_c_args,
+ pic: true)
project('gstreamer', 'c', 'cpp',
version : '1.11.0.1',
- meson_version : '>= 0.35.0',
+ meson_version : '>= 0.36.0',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
cc = meson.get_compiler('c')
-# FIXME: Meson should have a way for portably adding -fPIC when needed for use
-# with static libraries that are linked into shared libraries. Or, it should
-# add it by default with an option to turn it off if needed.
-pic_args = ['-fPIC']
-if host_machine.system() == 'windows'
- pic_args = []
-endif
-
# Ignore several spurious warnings for things gstreamer does very commonly
# If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
# If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once