mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1537, disable crossbuild for ARM/MIPS.
This commit is contained in:
parent
e6e4bd7fb4
commit
dffc96d2fe
7 changed files with 56 additions and 299 deletions
27
trunk/configure
vendored
27
trunk/configure
vendored
|
@ -163,10 +163,6 @@ fi
|
|||
if [ $SRS_STATIC = YES ]; then
|
||||
SrsLinkOptions="${SrsLinkOptions} -static";
|
||||
fi
|
||||
# if mips, add -lgcc_eh, or stl compile failed.
|
||||
if [ $SRS_MIPS_UBUNTU12 = YES ]; then
|
||||
SrsLinkOptions="${SrsLinkOptions} -lgcc_eh";
|
||||
fi
|
||||
# For coverage.
|
||||
if [[ $SRS_GCOV == YES ]]; then
|
||||
SrsLinkOptions="${SrsLinkOptions} ${SrsGcov}";
|
||||
|
@ -351,23 +347,10 @@ cat << END > ${SRS_WORKDIR}/${SRS_MAKEFILE}
|
|||
SRS_PREFIX=${SRS_PREFIX}
|
||||
__REAL_INSTALL=\$(DESTDIR)\$(SRS_PREFIX)
|
||||
|
||||
END
|
||||
|
||||
# embeded, ubuntu12, use embeded tool chain.
|
||||
if [ $SRS_CROSS_BUILD = YES ]; then
|
||||
cat << END >> ${SRS_WORKDIR}/${SRS_MAKEFILE}
|
||||
default:
|
||||
\$(MAKE) GCC=${SrsArmGCC} CXX=${SrsArmCXX} AR=${SrsArmAR} LINK=${SrsArmCXX} _default
|
||||
|
||||
END
|
||||
# x86/x64, use gnu-gcc/g++ tool chain.
|
||||
else
|
||||
cat << END >> ${SRS_WORKDIR}/${SRS_MAKEFILE}
|
||||
default:
|
||||
\$(MAKE) _default
|
||||
|
||||
END
|
||||
fi
|
||||
|
||||
# the real entry for all platform:
|
||||
# the server, librtmp and utest
|
||||
|
@ -687,16 +670,6 @@ if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then
|
|||
else
|
||||
echo -e "${GREEN}Note: The gprof(GNU profile tool) is disabled.${BLACK}"
|
||||
fi
|
||||
if [ $SRS_ARM_UBUNTU12 = YES ]; then
|
||||
echo -e "${GREEN}The cross-build arm-ubuntu12(armhf, v7cpu) is enabled.${BLACK}"
|
||||
else
|
||||
echo -e "${GREEN}Note: The cross-build arm-ubuntu12(armhf, v7cpu)is disabled.${BLACK}"
|
||||
fi
|
||||
if [ $SRS_MIPS_UBUNTU12 = YES ]; then
|
||||
echo -e "${GREEN}The mips-ubuntu12 is enabled.${BLACK}"
|
||||
else
|
||||
echo -e "${GREEN}Note: The mips-ubuntu12 is disabled.${BLACK}"
|
||||
fi
|
||||
if [ $SRS_VALGRIND = YES ]; then
|
||||
echo -e "${GREEN}The valgrind is enabled.${BLACK}"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue