From maintainers-request at octave dot org Wed Mar 1 16:26:19 2006 Subject: Re: Compiling octave-workshop From: "Sebastien Loisel" To: "John W. Eaton" Cc: "octave maintainers mailing list" Date: Wed, 1 Mar 2006 23:24:43 +0100 ------=_Part_5368_21698259.1141251883758 Content-Type: multipart/alternative; boundary="----=_Part_5369_13082448.1141251883758" ------=_Part_5369_13082448.1141251883758 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > Submitting a patch would at least tell us precisely what feature(s) > you need. > Here's an untested patch. I don't currently have a built octave tree. It's against 2.1.72 because I happened to have that lying around, uncompressed and uncompiled. It's also untested, but you should get the gist. It's very few lines of actual difference. If you want, I can debug this for a while until it sort of works and resend= . However, I'm going incommunicado for the next ten days or so. A guest is visiting from halfway across the world so we're going to Italy for a week. Cheers, S=E9bastien Loisel ------=_Part_5369_13082448.1141251883758 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Submitting a= patch would at least tell us precisely what feature(s)
you need.

Here's an untested patch. I don't currently have a built octave t= ree. It's against 2.1.72 because I happened to have that lying around, unco= mpressed and uncompiled. It's also untested, but you should get the gist. I= t's very few lines of actual difference.

If you want, I can debug this for a while until it sort of works an= d resend. However, I'm going incommunicado for the next ten days or so. A g= uest is visiting from halfway across the world so we're going to Italy for = a week.

Cheers,

S=E9bastien Loisel

------=_Part_5369_13082448.1141251883758-- ------=_Part_5368_21698259.1141251883758 Content-Type: application/octet-stream; name=mkoctfile.patch Content-Transfer-Encoding: 7bit X-Attachment-Id: f_eka7v2rq Content-Disposition: attachment; filename="mkoctfile.patch" --- mkoctfile.in Fri Nov 11 20:46:56 2005 +++ mymkoctfile.in Wed Mar 1 23:17:23 2006 at @ -59,6 +59,10 @@ : ${OCTAVE_LIBS="$LIBOCTINTERP $LIBOCTAVE $SPECIAL_MATH_LIB $LIBCRUFT"} +# Seb's additional variables +: ${CXX_COMPILE_FLAGS="$CPPFLAGS $CPICFLAG $ALL_CFLAGS"} +: ${LINK_STAND_ALONE_FLAGS="$CPPFLAGS $ALL_CXXFLAGS $RDYNAMIC_FLAG $ALL_LDFLAGS $LFLAGS $RLD_FLAG $OCTAVE_LIBS $BLAS_LIBS $FFTW_LIBS $LIBREADLINE $LIBS $FLIBS"} +: ${LINK_FLAGS="$DL_LDFLAGS $LFLAGS $OCTAVE_LIBS $LDFLAGS $BLAS_LIBS $FFTW_LIBS $LIBS $FLIBS"} # Local variables. usage_msg="usage: mkoctfile [options] file ..." at @ -159,6 +163,11 @@ BLAS_LIBS FFTW_LIBS LIBS FLIBS + But the ones you probably want are: + + CXX_COMPILE_FLAGS + LINK_FLAGS LINK_STAND_ALONE_FLAGS + --link-stand-alone Link a stand-alone executable file. -s, --strip Strip output file. at @ -283,7 +292,7 @@ cmd="rm -f $d" $dbg $cmd eval $cmd - cmd="$CXX $DEPEND_FLAGS $CPPFLAGS $ALL_CXXFLAGS $incflags $defs $f | $SED $DEPEND_EXTRA_SED_PATTERN -e 's,^[^:]*/\(.*\.o\):,\1:,' -e 's,$b\.o,pic/& & $d,g' > $d-t && mv $d-t $d" + cmd="$CXX $CXX_COMPILE_FLAGS $incflags $defs $f | $SED $DEPEND_EXTRA_SED_PATTERN -e 's,^[^:]*/\(.*\.o\):,\1:,' -e 's,$b\.o,pic/& & $d,g' > $d-t && mv $d-t $d" $dbg $cmd eval $cmd done at @ -378,7 +387,7 @@ o=$b.o fi objfiles="$objfiles $o" - cmd="$CXX -c $CPPFLAGS $CXXPICFLAG $ALL_CXXFLAGS $pass_on_options $incflags $defs $f -o $o" + cmd="$CXX -c $CXX_COMPILE_FLAGS $pass_on_options $incflags $defs $f -o $o" $dbg $cmd eval $cmd else at @ -407,7 +416,7 @@ if $link; then if $link_stand_alone; then if [ -n "$LD_CXX" ]; then - cmd="$LD_CXX $CPPFLAGS $ALL_CXXFLAGS $RDYNAMIC_FLAG $ALL_LDFLAGS $pass_on_options $output_option $objfiles $ldflags $LFLAGS $RLD_FLAG $OCTAVE_LIBS $BLAS_LIBS $FFTW_LIBS $LIBREADLINE $LIBS $FLIBS" + cmd="$LD_CXX $pass_on_options $output_option $objfiles $LINK_STAND_ALONE_FLAGS" $dbg $cmd eval $cmd else at @ -415,8 +424,7 @@ exit 1 fi else - LINK_DEPS="$LFLAGS $OCTAVE_LIBS $LDFLAGS $BLAS_LIBS $FFTW_LIBS $LIBS $FLIBS" - cmd="$DL_LD $DL_LDFLAGS $pass_on_options -o $octfile $objfiles $ldflags $LINK_DEPS" + cmd="$DL_LD $pass_on_options -o $octfile $objfiles $ldflags $LINK_FLAGS" $dbg $cmd eval $cmd fi ------=_Part_5368_21698259.1141251883758--