wiki:Tools/GCC

gcc

#!/bin/bash

export CC=gcc
export CXX=g++
export LD=ld

export CFLAGS="-Wformat -Wformat-security -Werror=format-security \
    -fstack-protector-strong --param ssp-buffer-size=4 \
    -fno-strict-aliasing -fno-strict-overflow -D_FORTIFY_SOURCE=2 \
    -m64 -march=native -mtune=native -O3 \
    -I/usr/local/include"
export CXXFLAGS="-Wformat -Wformat-security -Werror=format-security \
    -fstack-protector-strong --param ssp-buffer-size=4 \
    -fno-strict-aliasing -fno-strict-overflow -D_FORTIFY_SOURCE=2 \
    -m64 -march=native -mtune=native -O3 \
    -std=c++1y \
    -I/usr/local/include"
export LDFLAGS="-L/usr/local/lib \
    -Wl,-z,relro -Wl,-z,now"
export CXXLDFLAGS="-L/usr/local/lib \
    -Wl,-z,relro -Wl,-z,now"
Last modified 2 years ago Last modified on Sep 12, 2017, 11:54:40 AM
Note: See TracWiki for help on using the wiki.