Last active
December 5, 2019 21:18
-
-
Save AndreVallestero/2236a3852bbf8f88d826c76a3fba51ee to your computer and use it in GitHub Desktop.
GCC CFLAGS CCFLAGS CXXFLAGS LDFLAGS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GCC CFLAGS CCFLAGS CXXFLAGS LDFLAGS | |
# -Wl,-O1 is unstable on rk3399 | |
Performance | |
CFLAGS="-march=native -mtune=native -Ofast -pipe -fno-plt -fvisibility=hidden -flto -Wl,-lfto -s" | |
LDFLAGS="-Wl,--hash-style=both -Wl,-znow -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--relax -Wl,--enable-new-dtags -Wl,-flto -Wl,-s" | |
Debug | |
CFLAGS="-march=native -g3 -ggdb3 -Og -fvisibility=default" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment