Skip to content

Commit

Permalink
Merge pull request logrhythm#117 from kjell-hedstrom/2.3.1__BuildEnvi…
Browse files Browse the repository at this point in the history
…ronment__NoNative

2.3.1  build environment  no native
  • Loading branch information
Ben Aldrich committed Feb 13, 2014
2 parents 669eef5 + 22c2222 commit 1f35763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packaging/protoBuffers.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rm -rf protobuf-%{version}
tar -xjvf ~/rpmbuild/SOURCES/protobuf-%{version}.tar.bz2
cd protobuf-%{version}
chmod -R a+rX,g-w,o-w .
export GLOBAL_CPP_FLAGS="-fPIC -m64 -O3 -march=native -flto -L/usr/local/probe/lib -L/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib "
export GLOBAL_CPP_FLAGS="-fPIC -m64 -Ofast -flto -L/usr/local/probe/lib -L/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib "
CPPFLAGS="$CPPFLAGS $GLOBAL_CPP_FLAGS" LDFLAGS=$GLOBAL_CPP_FLAGS ./configure --prefix=/usr/local/probe
cd ..
%build
Expand Down
2 changes: 1 addition & 1 deletion scripts/compileThirdParty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DISTDIR="$thirdPartyDir"/$DIST
protoInstallDir="$DISTDIR"/protobuf/
protoc="$protoInstallDir"/bin/protoc
PROTOBUFFER_VERSION=2.5.0
GLOBAL_CPP_FLAGS="-fPIC -L/usr/local/probe/lib -L/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib -Ofast -m64 -O3 -march=native -flto"
GLOBAL_CPP_FLAGS="-fPIC -L/usr/local/probe/lib -L/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib64 -Wl,-rpath -Wl,/usr/local/probe/lib -Ofast -m64 -flto"
PATH=/usr/local/probe/bin:$PATH

rm -rf "$DISTDIR"/protobuf
Expand Down

0 comments on commit 1f35763

Please sign in to comment.