mirror of https://github.com/sysown/proxysql
parent
62eaf5f22d
commit
150e0347e6
@ -1,8 +1,22 @@
|
||||
## EXAMPLES of how to compiles on Linux and FreeBSD
|
||||
|
||||
## On Linux
|
||||
|
||||
## compile using gcc 4.8
|
||||
time CXX=g++-4.8 CC=gcc-4.8 make -j 5 build_deps
|
||||
time CXX=g++-4.8 CC=gcc-4.8 make
|
||||
|
||||
## On Linux
|
||||
## compile using clang 3.6 and stdc++4.8
|
||||
CXX=clang++-3.6 CC=clang-3.6 CPPFLAGS="-I/usr/include/c++/4.8/ -I/usr/include/x86_64-linux-gnu/c++/4.8" LDFLAGS="-L/usr/lib/x86_64-linux-gnu/ -L/usr/lib/gcc/x86_64-linux-gnu/4.8" make -j 5 build_deps
|
||||
CXX=clang++-3.6 CC=clang-3.6 CPPFLAGS="-I/usr/include/c++/4.8/ -I/usr/include/x86_64-linux-gnu/c++/4.8" LDFLAGS="-L/usr/lib/x86_64-linux-gnu/ -L/usr/lib/gcc/x86_64-linux-gnu/4.8" make -j 5
|
||||
CXX=clang++-3.6 CC=clang-3.6 CPPFLAGS="-I/usr/include/c++/4.8/ -I/usr/include/x86_64-linux-gnu/c++/4.8" LDFLAGS="-L/usr/lib/x86_64-linux-gnu/ -L/usr/lib/gcc/x86_64-linux-gnu/4.8" make
|
||||
|
||||
====
|
||||
|
||||
## On FreeBSD
|
||||
|
||||
## compile using gcc 4.9
|
||||
CC=gcc49 CXX=g++49 LIBS="-Wl,-rpath=/usr/local/lib/gcc49 -liconv" CPPFLAGS=-D_GLIBCXX_USE_C99 gmake
|
||||
|
||||
## compile using gcc 4.9
|
||||
CC=gcc48 CXX=g++48 LIBS="-Wl,-rpath=/usr/local/lib/gcc48 -liconv" CPPFLAGS=-D_GLIBCXX_USE_C99 gmake
|
||||
|
||||
## compile using clang 3.7
|
||||
CC=clang37 CXX=clang++37 gmake
|
||||
|
||||
Loading…
Reference in new issue