Skip to content

Commit 84fcfc0

Browse files
committed
setup.py: make build fail if undeclared symbols are used
This will detect cases where the autoconfig based on version is wrong. Debian bug #839224.
1 parent 911591a commit 84fcfc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,29 @@ def lib(*names, **kw):
4646
_journal = Extension('systemd/_journal',
4747
sources = ['systemd/_journal.c',
4848
'systemd/pyutil.c'],
49+
extra_compile_args=['-Werror=implicit-function-declaration'],
4950
**lib('libsystemd', 'libsystemd-journal', **defines))
5051
_reader = Extension('systemd/_reader',
5152
sources = ['systemd/_reader.c',
5253
'systemd/pyutil.c',
5354
'systemd/strv.c'],
55+
extra_compile_args=['-Werror=implicit-function-declaration'],
5456
**lib('libsystemd', 'libsystemd-journal', **defines))
5557
_daemon = Extension('systemd/_daemon',
5658
sources = ['systemd/_daemon.c',
5759
'systemd/pyutil.c'],
60+
extra_compile_args=['-Werror=implicit-function-declaration'],
5861
**lib('libsystemd', 'libsystemd-daemon', **defines))
5962
id128 = Extension('systemd/id128',
6063
sources = ['systemd/id128.c',
6164
'systemd/pyutil.c'],
65+
extra_compile_args=['-Werror=implicit-function-declaration'],
6266
**lib('libsystemd', 'libsystemd-id128', **defines))
6367
login = Extension('systemd/login',
6468
sources = ['systemd/login.c',
6569
'systemd/pyutil.c',
6670
'systemd/strv.c'],
71+
extra_compile_args=['-Werror=implicit-function-declaration'],
6772
**lib('libsystemd', 'libsystemd-login', **defines))
6873
setup (name = 'systemd-python',
6974
version = version,

0 commit comments

Comments
 (0)