[Git][slirp/libslirp][master] Use simpler test linker script for detectiong --version-script option

Samuel Thibault (@sthibaul) gitlab at gitlab.freedesktop.org
Sun May 12 13:47:10 UTC 2024


Samuel Thibault pushed to branch master at slirp / libslirp


Commits:
e174edf4 by Samuel Thibault at 2024-05-12T15:46:07+02:00
Use simpler test linker script for detectiong --version-script option

Otherwise e.g. mold complains that it doesn't find all these slirp_*
symbols.

Fixes #77

- - - - -


2 changed files:

- meson.build
- + src/libslirp.test.map


Changes:

=====================================
meson.build
=====================================
@@ -143,7 +143,7 @@ sources = [
 
 mapfile = 'src/libslirp.map'
 vflag = []
-vflag_test = '-Wl,--version-script, at 0@/@1@'.format(meson.current_source_dir(), mapfile)
+vflag_test = '-Wl,--version-script, at 0@/@1@'.format(meson.current_source_dir(), 'src/libslirp.test.map')
 if cc.has_link_argument(vflag_test)
   vflag += vflag_test
 endif


=====================================
src/libslirp.test.map
=====================================
@@ -0,0 +1,9 @@
+SLIRP_4.0 {
+global:
+    main;
+local:
+    *;
+};
+
+SLIRP_4.1 {
+} SLIRP_4.0;



View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/e174edf444e0e8d036b7a1e12711a751e2bb5fcd

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/e174edf444e0e8d036b7a1e12711a751e2bb5fcd
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20240512/9b223347/attachment-0001.htm>


More information about the Slirp mailing list