dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DejaGnu] library and ldflags order in target.exp reversed?


From: John David Anglin
Subject: [DejaGnu] library and ldflags order in target.exp reversed?
Date: Wed, 16 May 2001 19:54:37 -0400 (EDT)

I have sent this before.  The patch is relative to framework 1.3.1 but
I believe the problem still exits in 1.4.1.  The order of ldflags and the
libraries is important, especially under hpux.  As the code stands,
placing the ldflags after the libs results in the default library
search path being used in testsuites such as those for g++.  If the
libraries are installed, the installed libraries will be used instead
of the libraries under test.

Dave
-- 
J. David Anglin                                  address@hidden
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2001-05-16  John David Anglin  <address@hidden>

        * target.exp (default_target_compile): Place ldflags before
        libraries.

--- target.exp.orig     Tue Jul  6 14:10:19 1999
+++ target.exp  Fri Jul 16 15:50:23 1999
@@ -515,6 +515,8 @@
     }
 
     if { $type == "executable" } {
+       append add_flags " $ldflags"
+
        foreach x $libs {
            if [file exists $x] {
                append source " $x"
@@ -522,7 +524,6 @@
                append add_flags " $x";
            }
        }
-       append add_flags " $ldflags"
 
        if [board_info $dest exists libs] {
            append add_flags " [board_info $dest libs]"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]