1 2

[PATCH] Explicitly link in libc for project

Details
Message ID
<20190207023316.26872-1-dev@sgregoratto.me>
DKIM signature
pass
Download raw message
Patch: +4 -0
---
 meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meson.build b/meson.build
index eaa9a8e..080c34d 100644
--- a/meson.build
+++ b/meson.build
@@ -17,6 +17,10 @@ add_project_arguments([
 	'-Wno-unused-parameter',
 ], language: 'c')
 
+add_project_link_arguments([
+        '-lc',
+], language: 'c')
+
 cc = meson.get_compiler('c')
 
 if get_option('readline') != 'disabled'
-- 
-- 
2.20.1
Details
Message ID
<XOV4nlBBlBGEmubAloGdfbmMGElUhs7ac_ham3-85jN_dAIdQRq1ClCP4Qu1FHLdw0cL9xlj8VwQYU8t5sWrWN32mGdWfkJAmzj70lOiYCY=@emersion.fr>
In-Reply-To
<20190207023316.26872-1-dev@sgregoratto.me> (view parent)
DKIM signature
pass
Download raw message
Have you reported this to Meson?

On Thursday, February 7, 2019 3:33 AM, Stephen Gregoratto <dev@sgregoratto.me> wrote:
> +add_project_link_arguments([
> +        '-lc',
> +], language: 'c')

The "Meson way" to do this is with `cc.find_library`.