diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-01-03 18:37:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 18:37:00 +0100 |
commit | 7f9ac71c76f8157707fb36e1b316961aa4db0ac8 (patch) | |
tree | ac0dc28ea629a5c6b096bd67edcd7a6441eafed0 /src/basic/meson.build | |
parent | hwdb: Add accelerometer orientation entry for Teclast X98 Plus II tablet (#7766) (diff) | |
parent | meson: add a single .h file to shared libs with no sources (diff) | |
download | systemd-7f9ac71c76f8157707fb36e1b316961aa4db0ac8.tar.xz systemd-7f9ac71c76f8157707fb36e1b316961aa4db0ac8.zip |
Merge pull request #7705 from keszybz/redo-linking
Redo linking
Diffstat (limited to 'src/basic/meson.build')
-rw-r--r-- | src/basic/meson.build | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/basic/meson.build b/src/basic/meson.build index 31a00cee5e..c8abe74070 100644 --- a/src/basic/meson.build +++ b/src/basic/meson.build @@ -15,7 +15,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <http://www.gnu.org/licenses/>. -basic_sources_plain = files(''' +basic_sources = files(''' MurmurHash2.c MurmurHash2.h af-list.c @@ -306,7 +306,7 @@ foreach item : [['af', af_list_txt, 'af', ''], generated_gperf_headers += [target1, target2] endforeach -basic_sources = basic_sources_plain + [missing_h] + generated_gperf_headers +basic_sources += [missing_h] + generated_gperf_headers libbasic = static_library( 'basic', @@ -315,6 +315,16 @@ libbasic = static_library( dependencies : [threads, libcap, libblkid, - libselinux, - ], + libselinux], + c_args : ['-fvisibility=default'], install : false) + +# A convenience library that is separate from libbasic to avoid +# unnecessary linking to libgcrypt. +libbasic_gcrypt = static_library( + 'basic-gcrypt', + 'gcrypt-util.c', + 'gcrypt-util.h', + include_directories : includes, + dependencies : [libgcrypt], + c_args : ['-fvisibility=default']) |