Skip to content

Commit

Permalink
Add -fcommon C flag to fix compilation error
Browse files Browse the repository at this point in the history
See the following issue:
TheNextLVL#3
  • Loading branch information
ConnorDY committed Dec 19, 2021
1 parent 49b3167 commit 215b147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
url = 'http://sourceforge.net/projects/raspberry-gpio-python/',
classifiers = classifiers,
packages = ['RPi','RPi.GPIO'],
ext_modules = [Extension('RPi._GPIO', ['source/py_gpio.c', 'source/c_gpio.c', 'source/cpuinfo.c', 'source/event_gpio.c', 'source/soft_pwm.c', 'source/py_pwm.c', 'source/common.c', 'source/constants.c'])])
ext_modules = [Extension('RPi._GPIO', ['source/py_gpio.c', 'source/c_gpio.c', 'source/cpuinfo.c', 'source/event_gpio.c', 'source/soft_pwm.c', 'source/py_pwm.c', 'source/common.c', 'source/constants.c'], extra_compile_args = ['-fcommon'])])

0 comments on commit 215b147

Please sign in to comment.