scripts/Makefile.in patch

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

scripts/Makefile.in patch

Albert Chin-69
$LDFLAGS should be used in the build of gethelp if the path to the G++
runtime library needs to be hard-coded (or anything else).

--
albert chin ([hidden email])

-- snip snip
Index: scripts/Makefile.in
===================================================================
RCS file: /cvs/octave/scripts/Makefile.in,v
retrieving revision 1.56
diff -u -3 -p -r1.56 Makefile.in
--- scripts/Makefile.in 2003/01/05 07:50:29 1.56
+++ scripts/Makefile.in 2003/01/10 04:17:56
@@ -53,7 +53,7 @@ DOCSTRINGS: gethelp$(BUILD_EXEEXT) mkdoc
  mv $@.t $@
 
 gethelp$(BUILD_EXEEXT): gethelp.cc
- $(BUILD_CXX) -o $@ $^
+ $(BUILD_CXX) -o $@ $(LDFLAGS) $^
 
 install install-strip uninstall clean mostlyclean distclean maintainer-clean::
  @$(subdir-for-command)


Reply | Threaded
Open this post in threaded view
|

Re: scripts/Makefile.in patch

Paul Kienzle
Albert Chin wrote:

>$LDFLAGS should be used in the build of gethelp if the path to the G++
>runtime library needs to be hard-coded (or anything else).
>
>  
>
Except that it should be BUILD_LDFLAGS since you may be building on a
machine which
is different from the target machine, and this program is needed on the
build machine.
BUILD_FLAGS needs to be set in configure.in and makeconf, and used in
doc/interpreter
and src/ as well as scripts/.  I've already sent a patch for this.

Paul Kienzle
[hidden email]