summaryrefslogtreecommitdiff
path: root/user/libwacom/musl-test.patch
blob: cc4add634a401c5ee996a3673cbc3b9257f1a388 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- libwacom-1.2/meson.build.old	2019-12-22 21:45:06.000000000 +0000
+++ libwacom-1.2/meson.build	2019-12-25 11:43:51.004107631 +0000
@@ -588,7 +588,7 @@
 	# because of the tricks we use in calling the function and exposing
 	# it to begin with, LTO gets confused and this fails to link.
 	# Let's just disable it here.
-	if not get_option('b_lto')
+	if not get_option('b_lto') and get_option('test_deprecated')
 		test_deprecated = executable('test-deprecated',
 					     'test/test-deprecated.c',
 					     dependencies: [dep_libwacom, dep_dl],
--- libwacom-1.2/meson_options.txt.old	2019-11-07 02:25:47.000000000 +0000
+++ libwacom-1.2/meson_options.txt	2019-12-25 11:45:11.585452086 +0000
@@ -10,4 +10,8 @@
        type: 'feature',
        value: 'enabled',
        description: 'Build the tests [default=enabled]')
+option('test_deprecated',
+       type: 'boolean',
+       value: true,
+       description: 'Test the deprecated ABI (fails on musl) [default=true]')