build: Insert libc suffix to module_arch 18/325518/1
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 11 Jun 2025 05:17:50 +0000 (14:17 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 11 Jun 2025 08:39:55 +0000 (17:39 +0900)
Enlightement modules have been installing their shared object in the
path with the libc suffix. So, without this patch, the modules cannot be
loaded due to the mismatch the path.

Change-Id: I72e944b453c194daa141e282f9ea2d12e179a072

meson.build

index ee838ecd44f60580142d15e07fe75e3dd48c8f7d..5ad0d9d25039099ff3ab0a66e7171e0296be6d9a 100644 (file)
@@ -34,7 +34,8 @@ cc = meson.get_compiler('c')
 cpp = meson.get_compiler('cpp')
 
 release='ver-autocannoli-@0@.@1@'.format(e_version[0], e_version[1])
-module_arch = '@0@-gnueabi-@1@-@2@'.format(host_machine.system(), host_machine.cpu(), release)
+target_libc = run_command('gcc', '-dumpmachine', check: true).stdout().strip().split('-')[-1]
+module_arch = '@0@-@1@-@2@-@3@'.format(host_machine.system(), target_libc, host_machine.cpu(), release)
 
 config_h.set_quoted('MODULE_ARCH'      , module_arch)
 config_h.set_quoted('PACKAGE_VERSION'  , ver)