Skip to content

Commit

Permalink
Merge pull request elastic#468 from kjell-hedstrom/gcc_5x
Browse files Browse the repository at this point in the history
Gcc 5x
  • Loading branch information
KjellKod committed Feb 12, 2016
2 parents 7d65e12 + 33c1675 commit 34f9818
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 75 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ cpp
java
php
thirdParty/dist
thirdParty/protobuf-2.4.1/
thirdParty/protobuf-2.5.0/
thirdParty/protobuf-*/
thirdParty/github.com
source
.idea/
49 changes: 0 additions & 49 deletions packaging/protoBuffers.spec

This file was deleted.

17 changes: 0 additions & 17 deletions scripts/buildProtoBuffersRpm.sh

This file was deleted.

10 changes: 8 additions & 2 deletions scripts/buildProtoFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ thirdPartyDir="$startDir"/thirdParty
DIST=dist
DISTDIR="$thirdPartyDir"/$DIST
protoInstallDir="$DISTDIR"/protobuf/
protoc="$protoInstallDir"/bin/protoc
protoc="/usr/local/probe/bin/protoc"
phpprotoc="/usr/local/probe/bin/protoc-gen-php"
PROTOBUFFER_VERSION=2.5.0
PROTOBUFFER_VERSION=2.6.1
GLOBAL_CPP_FLAGS="-fPIC"

if [ ! -d "$startDir/thirdParty/dist/protobuf/include" ]; then
# skip a bunch of warnings. just create this directory if it doesn't already exist
# even if it is not always used
mkdir -p "$startDir/thirdParty/dist/protobuf/include"
fi

gogoBaseDir="$thirdPartyDir"/github.com/gogo/
if [ ! -d "$gogoBaseDir/protobuf" ]; then
mkdir -p "$gogoBaseDir"
Expand Down
2 changes: 1 addition & 1 deletion scripts/buildProtoFilesJava.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DIST=dist
DISTDIR="$thirdPartyDir"/$DIST
protoInstallDir="$DISTDIR"/protobuf/
protoc="$protoInstallDir"/bin/protoc
PROTOBUFFER_VERSION=2.5.0
PROTOBUFFER_VERSION=2.6.1
GLOBAL_CPP_FLAGS="-fPIC"

if [ ! -f "$protoc" ]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/buildProtoFilesPython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DIST=dist
DISTDIR="$thirdPartyDir"/$DIST
protoInstallDir="$DISTDIR"/protobuf/
protoc="$protoInstallDir"/bin/protoc
PROTOBUFFER_VERSION=2.5.0
PROTOBUFFER_VERSION=2.6.1
GLOBAL_CPP_FLAGS="-fPIC"

if [ ! -f "$protoc" ]; then
Expand Down
6 changes: 3 additions & 3 deletions scripts/compileThirdParty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ DIST=dist
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 -flto"
PROTOBUFFER_VERSION=2.6.1
GLOBAL_CPP_FLAGS="-fPIC -Ofast -m64 -flto "
PATH=/usr/local/probe/bin:$PATH

rm -rf "$DISTDIR"/protobuf
rm -rf "$thirdPartyDir"/protobuf-$PROTOBUFFER_VERSION
cd "$thirdPartyDir"
tar xvjf protobuf-$PROTOBUFFER_VERSION.tar.bz2
tar xvzf protobuf-$PROTOBUFFER_VERSION.tar.gz
cd protobuf-$PROTOBUFFER_VERSION
CPPFLAGS="$CPPFLAGS $GLOBAL_CPP_FLAGS" LDFLAGS=$GLOBAL_CPP_FLAGS ./configure --prefix="$DISTDIR"/protobuf
make -j
Expand Down
Binary file removed thirdParty/protobuf-2.5.0.tar.bz2
Binary file not shown.
Binary file added thirdParty/protobuf-2.6.1.tar.gz
Binary file not shown.

0 comments on commit 34f9818

Please sign in to comment.