From 67eb9d4f0c11b92c45cf3c57b5d0798322f1e603 Mon Sep 17 00:00:00 2001 From: milisbir Date: Wed, 29 Aug 2018 16:28:29 +0300 Subject: [PATCH] mpsd.conf --- ayarlar/mpsd.conf | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/ayarlar/mpsd.conf b/ayarlar/mpsd.conf index 11cf4ab3f..a07ae39bb 100644 --- a/ayarlar/mpsd.conf +++ b/ayarlar/mpsd.conf @@ -1,6 +1,18 @@ -export CFLAGS="-O2 -pipe" +export CARCH="x86_64" +export CHOST="x86_64-unknown-linux-gnu" + +#export CFLAGS="-O2 -pipe" +export CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" export CXXFLAGS="${CFLAGS}" + + +#-- Compiler and Linker Flags +# -march (or -mcpu) builds exclusively for an architecture +# -mtune optimizes for an architecture, but builds for whole processor family + +export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu" + case "`uname -m`" in "x86_64"|"") export MAKEFLAGS="-j5" @@ -12,7 +24,7 @@ case "`uname -m`" in export LDFLAGS="${LDFLAGS} -m32" ;; *) - echo "bilinmeyen mimari..cıkılıyor." + echo "bilinmeyen mimari..çıkılıyor." exit 1 ;; esac