-
Notifications
You must be signed in to change notification settings - Fork 25
Quickstart Target examples
g++ -O3 zpaqfranz.cpp -o zpaqfranz
g++ -O3 zpaqfranz.cpp -o zpaqfranz -pthread -static
In this case, of course, linking the .S file is mandatory
g++ -O3 -DHWBLAKE3 blake3_windows_gnu.S zpaqfranz.cpp -o zpaqfranz -pthread -static
g++ -O3 -DHWBLAKE3 -DHWSHA1 blake3_windows_gnu.s zpaqfranz.cpp sha1ugo.obj -o zpaqfranzhw -pthread -static
g++ -O3 -DHWBLAKE3 -DHWSHA2 blake3_windows_gnu.s zpaqfranz.cpp -o zpaqfranzhw -pthread -static
g++ -O3 -DGUI -DHWBLAKE3 -DHWSHA2 blake3_windows_gnu.s zpaqfranz.cpp -o zpaqfranzhw -pthread -static -s
c:\mingw32\bin\g++ -m32 -O3 zpaqfranz.cpp -o zpaqfranz32 -pthread -static
g++ -O3 -DSERVER zpaqfranz.cpp -o zpaqfranz -lwsock32 -lws2_32
gcc7 -O3 -Dunix zpaqfranz.cpp -lstdc++ -pthread -o zpaqfranz -static -lm
g++ -O3 -Dunix zpaqfranz.cpp -pthread -o zpaqfranz -static-libstdc++ -static-libgcc
g++ -O3 -Dunix zpaqfranz.cpp -pthread -o zpaqfranz -static-libstdc++ -static-libgcc -Wno-stringop-overflow
clang++ -Dunix zpaqfranz.cpp -pthread -o zpaqfranz -static
clang++ -Dunix -O3 zpaqfranz.cpp -o zpaqfranz -pthread -static
I strongly advise against using zpaqfranz on this Linux distro(s). There is a bizarre policy on compiling executables. Obviously no one forbids it (runs fine), but just don't ask for help.
g++ -O3 -Dunix zpaqfranz.cpp -pthread -o zpaqfranz -static
g++ -Dunix zpaqfranz.cpp -pthread -o zpaqfranz -Wno-psabi
Typically you will need some library (out of a fresh Fedora box) sudo dnf install glibc-static libstdc++-static -y; Then you can compile, via Makefile or "by hand" (do not forget... sudo!)
Please note: "Red Hat discourages the use of static linking for security reasons. Use static linking only when necessary, especially against libraries provided by Red Hat. " Therefore a -static linking is often a nightmare on CentOS => change the Makefile
g++ -O3 -Dunix zpaqfranz.cpp -pthread -o zpaqfranz
Beware: -DSOLARIS and some different linking options
g++ -O3 -DSOLARIS zpaqfranz.cpp -o zpaqfranz -pthread -static-libgcc -lkstat
Please note: No -static here "Apple does not support statically linked binaries on Mac OS X. (...) Rather, we strive to ensure binary compatibility in each dynamically linked system library and framework (AHAHAHAHAHAH, note by me) Warning: Shipping a statically linked binary entails a significant compatibility risk. We strongly recommend that you not do this..." Short version: Apple does not like -static g++ -Dunix -O3 zpaqfranz.cpp -o zpaqfranz -pthread If you want to enable all kind of warnings, turn on c++11. Apple, by default, does NOT like "long long", at all. As I have explained several times, I had to make compromises, such as the C++17 warnings
g++ -Dunix -O3 zpaqfranz.cpp -o zpaqfranz -pthread -std=c++11 -Wall -Wpedantic
Look at -DBIG (for BIG ENDIAN) and -DANCIENT (old-compiler)
g++ -O3 -DBIG -DANCIENT -Dunix -DNOJIT zpaqfranz.cpp -o zpaqfranz -pthread
DO NOT FORGET THE -DNOJIT!!!!!
g++ -Dunix -O3 -DNOJIT zpaqfranz.cpp -o zpaqfranz -pthread
Note: not fully developed ( extract() with minimum RAM need to be implemented )
g++ -O3 -DESX zpaqfranz.cpp -o zpaqfranz6 -pthread -static -s
try -DALIGNMALLOC (+ other switches)
g++ -O3 -Dunix zpaqfranz.cpp -o zpaqfranz -pthread -static