Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. * To build on OSX (32bit)
  2. export CC=/usr/bin/llvm-gcc
  3. export CXX=/usr/bin/llvm-g++
  4. export CFLAGS="-m32 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Os -fvisibility=hidden"
  5. export CXXFLAGS="$CFLAGS"
  6. $ ./configure --enable-shared=no
  7. Note that in xcode4 beta builds /Developer would be replaced with /Xcode4
  8. * To build on linux x86:
  9. export CC=/usr/bin/gcc
  10. export CXX=/usr/bin/g++
  11. export CFLAGS="-fvisibility=hidden -m32"
  12. export CXXFLAGS="-fvisibility=hidden -m32"
  13. export LDFLAGS="-static-libgcc"
  14. ./configure --enable-shared=no
  15. * To build on linux x86_64:
  16. export CC=/path/to/gcc
  17. export CXX=/path/to/g++
  18. export CFLAGS=-fvisibility=hidden
  19. export CXXFLAGS=-fvisibility=hidden
  20. export LDFLAGS=-static-libgcc
  21. ./configure --with-pic --enable-shared=no
  22. alternatively, just put all those variables on the configure line (note that LIBS is expressed in terms of the path to g++, not the CXX variable):
  23. ./configure CC=/path/to/c-compiler CXX=/path/to/c++-compiler [LDFLAGS=-static-libgcc] [-m32] [--with-pic] --enable-shared=no
  24. This will build src/protoc (the compiler binary) and src/.libs/libprotobuf.a (among others).
  25. publish protoc into src/devtools/bin/<platform>/
  26. publish libprotobuf.a gets into src/lib/<platform>/release