From e0e033d847b3b50042a035b953fbd69decd1aaa8 Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 19 Apr 2014 11:54:14 +0800 Subject: [PATCH] fix bug for arm cross build --- trunk/configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/trunk/configure b/trunk/configure index 39fdf5722..29093aca7 100755 --- a/trunk/configure +++ b/trunk/configure @@ -403,7 +403,13 @@ if [ $SRS_GPERF = YES ]; then LibGperfRoot="${SRS_OBJS}/gperf/include"; LibGperf # the link options, always use static link SrsLinkOptions=""; if [ $SRS_SSL = YES ]; then if [ $SRS_USE_SYS_SSL = YES ]; then SrsLinkOptions="-lssl"; fi fi -if [ $SRS_STATIC = YES ]; then SrsLinkOptions="${SrsLinkOptions} -static"; else SrsLinkOptions="${SrsLinkOptions} -ldl"; fi +if [ $SRS_ARM_UBUNTU12 = YES ]; then + # for arm cross build tool chain, always use static and ldl. + SrsLinkOptions="${SrsLinkOptions} -static -ldl"; +else + # for x86/64/arm directly build, use static or ldl. + if [ $SRS_STATIC = YES ]; then SrsLinkOptions="${SrsLinkOptions} -static"; else SrsLinkOptions="${SrsLinkOptions} -ldl"; fi +fi ##################################################################################### # Modules, compile each module, then link to binary