From 12a55cd0c2c0495ca3d4e9eceb537915a52c1e8f Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 30 May 2017 09:58:14 +0800 Subject: [PATCH] Fix build failed. --- trunk/research/librtmp/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/research/librtmp/Makefile b/trunk/research/librtmp/Makefile index ca3e4734b..00fad0900 100755 --- a/trunk/research/librtmp/Makefile +++ b/trunk/research/librtmp/Makefile @@ -57,11 +57,11 @@ SRS_RESEARCH_DEPS = Makefile # for x86/x64 platform ifeq ($(GCC), gcc) - EXTRA_CXX_FLAG = -g -O0 -ldl -lstdc++ + EXTRA_CXX_FLAG = -g -O0 -ldl -lstdc++ -lm endif # for arm. ifeq ($(GCC), arm-linux-gnueabi-gcc) - EXTRA_CXX_FLAG = -g -O0 -ldl -static -lstdc++ + EXTRA_CXX_FLAG = -g -O0 -ldl -static -lstdc++ -lm endif # for mips, add -lgcc_eh, or stl compile failed. ifeq ($(GCC), mipsel-openwrt-linux-gcc)