]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
Compile python module with -fPIC.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Oct 2011 19:09:02 +0000 (21:09 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Oct 2011 19:09:02 +0000 (21:09 +0200)
If we omit that flag, pakfire won't compile on OpenSuSE.

Makeconfig

index 6e7809fadf56e8650900251aceffc932afcb3989..9ce9015550fee8c5bf6cfeb1ece22ff367a9fd66 100644 (file)
@@ -20,7 +20,7 @@ endif
 
 # Get the version and configuration of the python interpreter.
 PYTHON_VERSION = $(shell python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])")
-PYTHON_CC      = $(CC) -pthread
+PYTHON_CC      = $(CC) -pthread -fPIC
 PYTHON_CFLAGS  = $(shell python-config --cflags)
 PYTHON_DIR     = $(LIBDIR)/python$(PYTHON_VERSION)/site-packages
 PYTHON_MODULES = pakfire pakfire/packages pakfire/repository