Introduced xorriso development compiler script option -no_libreadline

This commit is contained in:
Thomas Schmitt 2008-10-09 15:01:06 +00:00
parent cd92b00f61
commit cb6646d49e
1 changed files with 9 additions and 2 deletions

View File

@ -22,6 +22,8 @@ do_strip=0
static_opts= static_opts=
warn_opts="-Wall" warn_opts="-Wall"
nglibisofs=1 nglibisofs=1
def_libreadline="-DXorriso_with_readlinE"
link_libreadline="-lreadline"
for i in "$@" for i in "$@"
do do
@ -35,11 +37,16 @@ do
elif test "$i" = "-g" elif test "$i" = "-g"
then then
debug_opts="-g -O0" debug_opts="-g -O0"
elif test "$i" = "-no_libreadline"
then
def_libreadline=""
link_libreadline=""
elif test "$i" = "-help" -o "$i" = "--help" -o "$i" = "-h" elif test "$i" = "-help" -o "$i" = "--help" -o "$i" = "-h"
then then
echo \ echo \
"$xorr/compile_xorriso.sh : to be executed above top level directories" "$xorr/compile_xorriso.sh : to be executed above top level directories"
echo "Options:" echo "Options:"
echo " -no_libreadline do not compile for and link with libreadline."
echo " -do_diet produce capability reduced lean version." echo " -do_diet produce capability reduced lean version."
echo " -do_strip apply program strip to compiled programs." echo " -do_strip apply program strip to compiled programs."
echo " -g produce debuggable programm." echo " -g produce debuggable programm."
@ -83,7 +90,7 @@ date -u '+#define Xorriso_build_timestamP "%Y.%m.%d.%H%M%S"' >"$xorr"/xorriso_bu
echo "Build timestamp : $(sed -e 's/#define Xorriso_build_timestamP "//' -e 's/"$//' "$xorr"/xorriso_buildstamp.h)" echo "Build timestamp : $(sed -e 's/#define Xorriso_build_timestamP "//' -e 's/"$//' "$xorr"/xorriso_buildstamp.h)"
echo "compiling program $xorr/xorriso.c $static_opts $debug_opts $def_opts" echo "compiling program $xorr/xorriso.c $static_opts $debug_opts $def_opts"
cc -I. -DXorriso_with_maiN -DXorriso_with_regeX -DXorriso_with_readlinE \ cc -I. -DXorriso_with_maiN -DXorriso_with_regeX $def_libreadline \
$warn_opts \ $warn_opts \
$static_opts \ $static_opts \
$debug_opts \ $debug_opts \
@ -130,7 +137,7 @@ cc -I. -DXorriso_with_maiN -DXorriso_with_regeX -DXorriso_with_readlinE \
\ \
$libisofs \ $libisofs \
\ \
-lreadline \ $link_libreadline \
\ \
-lpthread -lpthread