2018-08-29 15:28:29 +02:00
|
|
|
|
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"
|
2016-02-24 01:27:23 +01:00
|
|
|
|
export CXXFLAGS="${CFLAGS}"
|
|
|
|
|
|
2018-08-29 15:28:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-- 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"
|
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
|
case "`uname -m`" in
|
|
|
|
|
"x86_64"|"")
|
|
|
|
|
export MAKEFLAGS="-j5"
|
|
|
|
|
;;
|
|
|
|
|
"i686")
|
|
|
|
|
export MAKEFLAGS="-j2"
|
|
|
|
|
export CFLAGS="${CFLAGS} -m32"
|
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -m32"
|
|
|
|
|
export LDFLAGS="${LDFLAGS} -m32"
|
|
|
|
|
;;
|
|
|
|
|
*)
|
2018-08-29 15:28:29 +02:00
|
|
|
|
echo "bilinmeyen mimari..çıkılıyor."
|
2016-02-24 01:27:23 +01:00
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
esac
|
2016-03-07 00:39:49 +01:00
|
|
|
|
DERLEME_SANTIYE="/tmp/work"
|
|
|
|
|
DERLEME_KAYNAKDIZIN="/sources"
|
|
|
|
|
PKGMK_SYNC_FILES="yok"
|
|
|
|
|
PKT_SIKISTIRMA="evet"
|
|
|
|
|
DOSYAIZLEME_YOKSAY="evet"
|
|
|
|
|
PKGMK_UPDATE_INDEX="evet"
|
|
|
|
|
PKGMK_KEEP_SOURCES="evet"
|
|
|
|
|
PKGMK_CLEAN="yok"
|
2018-01-29 06:05:59 +01:00
|
|
|
|
PAKET_GRUPLAR=""
|
2016-03-19 01:55:02 +01:00
|
|
|
|
PAKET_LOKAL="tr"
|
2016-03-07 00:39:49 +01:00
|
|
|
|
KOLEKSIYON_YOKSAY="yok"
|
|
|
|
|
SURUM_YOKSAY="yok"
|
2017-11-01 19:18:48 +01:00
|
|
|
|
SHASUM_KONTROL_YAP="evet"
|