diff options
author | Frank Barchard <fbarchard@google.com> | 2016-07-06 16:02:17 -0700 |
---|---|---|
committer | Frank Barchard <fbarchard@google.com> | 2016-07-06 16:02:17 -0700 |
commit | ff9b16b828712cd6aa4ddef3b419a604e17bd4a9 (patch) | |
tree | ef46d49f7ca84e04f7b7d2ede48f360e62fa5a77 /linux.mk | |
parent | 303b9f03c826296fcacf4678d8a2ed708a918044 (diff) | |
download | libyuv-ff9b16b828712cd6aa4ddef3b419a604e17bd4a9.tar.gz |
Remove -lc++ link and document -fno-exceptions
-lc++ can cause link error on some systems and is not necessary on gcc 4.6+ so remove the link option and document how to build for gcc 4.4
TEST=CC=gcc-4.4 CXXFLAGS=-fno-exceptions CXX=g++-4.4 make -f linux.mk clean all
BUG=libyuv:616
Review URL: https://codereview.chromium.org/2126703003 .
Diffstat (limited to 'linux.mk')
-rw-r--r-- | linux.mk | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -74,8 +74,10 @@ psnr: util/psnr.cc $(CXX) $(CXXFLAGS) -Iutil/ -o $@ util/psnr.cc util/psnr_main.cc util/ssim.cc # A C test utility that uses libyuv conversion from C. +# gcc 4.4 and older require -fno-exceptions to avoid link error on __gxx_personality_v0 +# CC=gcc-4.4 CXXFLAGS=-fno-exceptions CXX=g++-4.4 make -f linux.mk cpuid: util/cpuid.c libyuv.a - $(CC) $(CFLAGS) -o $@ util/cpuid.c libyuv.a -lc++ + $(CC) $(CFLAGS) -o $@ util/cpuid.c libyuv.a clean: /bin/rm -f source/*.o *.ii *.s libyuv.a convert cpuid psnr |