summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorCristian Rodríguez <crrodriguez@opensuse.org>2013-06-21 22:38:46 -0400
committerMilan Broz <gmazyland@gmail.com>2013-06-23 17:14:33 +0200
commit1349efa34db577947083daee2e521770614fcfe0 (patch)
treee347bb61b3d0fd28a1b874a4f96711ae18b8c8ed /python
parentcf99ecb5a9829da5e449241c499af56beb2a0052 (diff)
downloadcryptsetup-1349efa34db577947083daee2e521770614fcfe0.tar.gz
cryptsetup-1349efa34db577947083daee2e521770614fcfe0.tar.bz2
cryptsetup-1349efa34db577947083daee2e521770614fcfe0.zip
Fix buildsytem to always include config.h.
- config.h must always be the first file to be included - Use AM_CFLAGS and AM_LDFLAGS consistently and properly. (Modified to disable build without largefile support etc by Milan Broz <gmazyland@gmail.com>)
Diffstat (limited to 'python')
-rw-r--r--python/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
index 199ecc3..a3880a8 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -1,4 +1,4 @@
-AM_CPPFLAGS = -I$(top_srcdir)/lib $(PYTHON_INCLUDES)
+AM_CPPFLAGS = -include $(top_srcdir)/config.h -I$(top_srcdir)/lib $(PYTHON_INCLUDES)
EXTRA_DIST = pycryptsetup-test.py
CLEANFILES = *.img
@@ -9,7 +9,7 @@ pyexec_LTLIBRARIES = pycryptsetup.la
pycryptsetup_la_SOURCES = pycryptsetup.c
pycryptsetup_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_CPPFLAGS) -fno-strict-aliasing
-pycryptsetup_la_LDFLAGS = -avoid-version -module
+pycryptsetup_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
pycryptsetup_la_LIBADD = $(top_builddir)/lib/libcryptsetup.la -lpython$(PYTHON_VERSION)
else
all: