From ce7ec2b3f59be54f67981d0f0e2f1155d58b110e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2020 17:44:44 +0100 Subject: [PATCH] meson.build: add -f{function,data}-sections to C++ as well By accident, this was only enabled for C. --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index b6da75056..4acd0db64 100644 --- a/meson.build +++ b/meson.build @@ -88,6 +88,10 @@ test_ldflags = [ ] if get_option('buildtype') != 'debug' + test_cxxflags += [ + '-ffunction-sections', + '-fdata-sections', + ] test_cflags += [ '-ffunction-sections', '-fdata-sections',