Merge pull request #12351 from keszybz/sd-bus-add-symbol
Add symbol to tell the linker that new libsystemd version is needed
This commit is contained in:
@@ -6,18 +6,22 @@ for header in sys.argv[2:]:
|
||||
print('#include "{}"'.format(header.split('/')[-1]))
|
||||
|
||||
print('''
|
||||
void* functions[] = {''')
|
||||
const void* symbols[] = {''')
|
||||
|
||||
for line in open(sys.argv[1]):
|
||||
match = re.search('^ +([a-zA-Z0-9_]+);', line)
|
||||
if match:
|
||||
print(' {},'.format(match.group(1)))
|
||||
s = match.group(1)
|
||||
if s == 'sd_bus_object_vtable_format':
|
||||
print(' &{},'.format(s))
|
||||
else:
|
||||
print(' {},'.format(s))
|
||||
|
||||
print('''};
|
||||
|
||||
int main(void) {
|
||||
unsigned i;
|
||||
for (i = 0; i < sizeof(functions)/sizeof(void*); i++)
|
||||
printf("%p\\n", functions[i]);
|
||||
for (i = 0; i < sizeof(symbols)/sizeof(void*); i++)
|
||||
printf("%p\\n", symbols[i]);
|
||||
return 0;
|
||||
}''')
|
||||
|
||||
@@ -911,7 +911,8 @@ tests += [
|
||||
[],
|
||||
[threads]],
|
||||
|
||||
[['src/libsystemd/sd-bus/test-bus-vtable.c'],
|
||||
[['src/libsystemd/sd-bus/test-bus-vtable.c',
|
||||
'src/libsystemd/sd-bus/test-vtable-data.h'],
|
||||
[],
|
||||
[]],
|
||||
|
||||
@@ -934,7 +935,8 @@ tests += [
|
||||
[threads],
|
||||
'', 'manual'],
|
||||
|
||||
[['src/libsystemd/sd-bus/test-bus-introspect.c'],
|
||||
[['src/libsystemd/sd-bus/test-bus-introspect.c',
|
||||
'src/libsystemd/sd-bus/test-vtable-data.h'],
|
||||
[],
|
||||
[]],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user