Skip to content

Commit

Permalink
add parameter have_pic "Position-Independent Code (PIC)" if is not a …
Browse files Browse the repository at this point in the history
…cross_build
  • Loading branch information
humbertodias committed Feb 21, 2024
1 parent 54124ed commit 299324e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ sdl_graphics_dependency = []
sdl_graphics_library = []
yaml_cpp_dependency = []
yaml_cpp_library = []
have_pic = not meson.is_cross_build()

# Not supported in mingw
if not meson.is_cross_build()
Expand Down
3 changes: 2 additions & 1 deletion src/r-tech1/libs/dumb/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@ dumb_includes = include_directories('./include')
dumb_library = static_library('dumb', dumb_source,
include_directories: [includes, dumb_includes],
dependencies: [zlib_dependency],
c_args: ['-w']
c_args: ['-w'],
pic: have_pic
)
3 changes: 2 additions & 1 deletion src/r-tech1/libs/gme/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ gme_source = [
gme_library = static_library('gme', gme_source,
include_directories: [includes, '.'],
dependencies: [zlib_dependency],
cpp_args: ['-w']
cpp_args: ['-w'],
pic: have_pic
)

0 comments on commit 299324e

Please sign in to comment.