Skip to content

Commit

Permalink
meson: better match autotools cxxflags
Browse files Browse the repository at this point in the history
Change-Id: I667c8685b13b7bab91e281053f807a11616ae3d4
  • Loading branch information
Qyriad committed Mar 17, 2024
1 parent f150b3f commit 7acdcf5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
project('lix', 'cpp',
version : run_command('bash', '-c', 'echo -n $(cat ./.version)$VERSION_SUFFIX', check : true).stdout().strip(),
default_options : [
'buildtype=debugoptimized',
'cpp_std=c++20',
'warning_level=1',
'debug=true',
'optimization=3',
],
)

Expand Down Expand Up @@ -206,6 +207,15 @@ add_project_arguments(
'-Wno-unused-parameter',
'-Wno-missing-field-initializers',
'-Wno-deprecated-copy',
'-pthread',
#'-fPIC',
language : 'cpp',
)

# FIXME(Qyriad): only if not Darwin, Solaris, or FreeBSD
# (...so only if Linux?)
add_project_link_arguments(
'-Wl,--no-copy-dt-needed-entries',
language : 'cpp',
)

Expand Down
2 changes: 1 addition & 1 deletion src/libmain/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ libmain_sources = files(
)

libmain = library(
'main',
'nixmain',
libmain_sources,
dependencies : [
liblixutil,
Expand Down

0 comments on commit 7acdcf5

Please sign in to comment.