aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/cc/gcc.txt8
-rw-r--r--src/build-data/makefile/python.in4
2 files changed, 9 insertions, 3 deletions
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt
index f8df398f1..4e7536e0f 100644
--- a/src/build-data/cc/gcc.txt
+++ b/src/build-data/cc/gcc.txt
@@ -11,7 +11,7 @@ add_lib_option -l
lang_flags "-D_REENTRANT -std=c++0x"
warning_flags "-W -Wall"
-maintainer_warning_flags "-Werror -Wall -Wextra -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wold-style-cast"
+maintainer_warning_flags "-Werror -Weffc++ -Wall -Wextra -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wold-style-cast"
lib_opt_flags "-O3"
check_opt_flags "-O2"
@@ -47,7 +47,11 @@ i586 -> "-mtune=generic -momit-leaf-frame-pointer"
# Translate to GCC-speak
nehalem -> "-march=corei7 -momit-leaf-frame-pointer"
-westmere -> "-march=corei7 -maes -momit-leaf-frame-pointer"
+#westmere -> "-march=corei7 -maes -momit-leaf-frame-pointer"
+
+#nehalem -> "-march=core2 -msse4.1 -msse4.2 -momit-leaf-frame-pointer"
+#westmere -> "-march=core2 -msse4.1 -msse4.2 -maes -momit-leaf-frame-pointer"
+
sandybridge -> "-march=corei7-avx -momit-leaf-frame-pointer"
atom32 -> "-march=atom -momit-leaf-frame-pointer"
diff --git a/src/build-data/makefile/python.in b/src/build-data/makefile/python.in
index 583c91eb5..74620fe06 100644
--- a/src/build-data/makefile/python.in
+++ b/src/build-data/makefile/python.in
@@ -3,6 +3,8 @@ CFLAGS = -Os
LDFLAGS =
WARN_FLAGS = %{warn_flags}
+SERIES = %{version_major}.%{version_minor}
+
PYTHON_ROOT = /usr/lib/python%{python_version}/config
PYTHON_INC = -I/usr/include/python%{python_version}
PYTHON_SITE_PACKAGE_DIR = /usr/lib/python%{python_version}/site-packages/
@@ -19,7 +21,7 @@ all: $(BOTAN_PYTHON_MODDIR)/_botan.so
$(BOTAN_PYTHON_MODDIR)/_botan.so: $(PYTHON_OBJS)
cp %{python_dir}/*.py $(BOTAN_PYTHON_MODDIR)
- $(CXX) -shared -Wl,-soname,$@ $(PYTHON_OBJS) -L. -L$(PYTHON_ROOT) $(LDFLAGS) -lbotan -lboost_python -o $@
+ $(CXX) -shared -Wl,-soname,$@ $(PYTHON_OBJS) -L. -L$(PYTHON_ROOT) $(LDFLAGS) -lbotan-$(SERIES) -lboost_python -o $@
clean:
rm -rf $(BOTAN_PYTHON_MODDIR)/*