[ 
https://issues.apache.org/jira/browse/TS-3938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15159915#comment-15159915
 ] 

ASF GitHub Bot commented on TS-3938:
------------------------------------

GitHub user bryancall opened a pull request:

    https://github.com/apache/trafficserver/pull/497

    TS-3938: Add hardening (fortify) as an option to configure

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bryancall/trafficserver TS-3938

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/497.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #497
    
----
commit 3ea0471bcfd82eecf7a7b2892433399d9874a0be
Author: Bryan Call <[email protected]>
Date:   2016-02-24T00:04:57Z

    TS-3938: Add hardening (fortify) as an option to configure

----


> Add hardening (fortify) as an option to configure
> -------------------------------------------------
>
>                 Key: TS-3938
>                 URL: https://issues.apache.org/jira/browse/TS-3938
>             Project: Traffic Server
>          Issue Type: New Feature
>          Components: Build
>            Reporter: Leif Hedstrom
>            Assignee: Bryan Call
>             Fix For: sometime
>
>
> It might be useful to add an option, e.g. --with-hardening, such that we can 
> build with various hardening compiler options. For example. I've used
> {code}
> CC="/opt/gcc5/bin/gcc"; export CC
> CXX="/opt/gcc5/bin/g++"; export CXX
> CFLAGS="-fstack-protector -fno-omit-frame-pointer"; export CFLAGS
> CXXFLAGS="-fstack-protector -fno-omit-frame-pointer"; export CXXFLAGS
> CPPFLAGS="-D_FORTIFY_SOURCE=2"; export CPPFLAGS
> LDFLAGS="-Wl,-z,relro -Wl,-z,now"; export LDFLAGS
> "./configure" \
> "--enable-experimental-plugins" \
> "--prefix=/opt/ats" \
> "CC=/opt/gcc5/bin/gcc" \
> "CXX=/opt/gcc5/bin/g++" \
> "CFLAGS=-fstack-protector -fno-omit-frame-pointer" \
> "CXXFLAGS=-fstack-protector -fno-omit-frame-pointer" \
> "CPPFLAGS=-D_FORTIFY_SOURCE=2" \
> "LDFLAGS=-Wl,-z,relro -Wl,-z,now" \
> "$@"
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to