From 75fd59608431cce4b306cbcc059b3cb7b061c3c6 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Mon, 13 Feb 2023 08:51:33 +0000 Subject: [PATCH] Merge pull request #1447 from ailin-nemui/signalsfile-fix fix signalsfile some more (cherry picked from commit c1fd4b17f53f7627cacb63f478af627bec1581c9) --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c4aad2fa..1a8c23f3 100644 --- a/meson.build +++ b/meson.build @@ -591,7 +591,12 @@ if not glib_internal endif signalsfile = docdir / 'signals.txt' if signalsfile.startswith('/') - signalsfile = signalsfile.replace(get_option('prefix'), '${prefix}') + signalsfile = signalsfile.split(get_option('prefix')) + if signalsfile[0] == '' + signalsfile = '${prefix}' + signalsfile[1] + else + signalsfile = signalsfile[0] + endif else signalsfile = '${prefix}' / signalsfile endif