]> sourceware.org Git - automake.git/commitdiff
* automake.in (handle_libraries, handle_ltlibraries): Use
authorAkim Demaille <akim@epita.fr>
Mon, 29 Jan 2001 09:12:15 +0000 (09:12 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 29 Jan 2001 09:12:15 +0000 (09:12 +0000)
&transform.

ChangeLog
automake.in

index 48610b59ea8cb0a56161f59f9bb20b856925a772..dfdb1cfc2791da4bfe44c40673bec1cba893eb78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-29  Akim Demaille  <akim@epita.fr>
+
+       * automake.in (handle_libraries, handle_ltlibraries): Use
+       &transform.
+
+       
 2001-01-29  Akim Demaille  <akim@epita.fr>
 
        * automake.in (handle_programs) <xexe>: Remove, replaced by
index 89a533e488db88b49a79239e3be4484c52553636..5ff8eaefde6c02d56db136db978c660a5550cbe5 100755 (executable)
@@ -1536,6 +1536,9 @@ sub handle_source_transform
     return $linker;
 }
 
+
+# handle_lib_objects ()
+# ---------------------
 # Special-case @ALLOCA@ and @LIBOBJS@ in _LDADD or _LIBADD variables.
 # Also, generate _DEPENDENCIES variable if appropriate.
 # Arguments are:
@@ -1841,6 +1844,8 @@ sub handle_programs
 }
 
 
+# handle_libraries ()
+# -------------------
 # Handle libraries.
 sub handle_libraries
 {
@@ -1919,10 +1924,10 @@ sub handle_libraries
        &handle_source_transform ($xlib, $onelib, $obj);
 
        $output_rules .=
-           &file_contents_with_transform ('s/\@LIBRARY\@/' . $onelib . '/go;'
-                                          . 's/\@XLIBRARY\@/'
-                                          . $xlib . '/go;',
-                                          'library');
+           &file_contents_with_transform
+               (&transform ('LIBRARY'  => $onelib,
+                            'XLIBRARY' => $xlib),
+                'library');
     }
 
     if ($seen_libobjs)
@@ -1942,6 +1947,9 @@ sub handle_libraries
     &define_configure_variable ('RANLIB');
 }
 
+
+# handle_ltlibraries ()
+# ---------------------
 # Handle shared libraries.
 sub handle_ltlibraries
 {
@@ -2069,22 +2077,20 @@ sub handle_ltlibraries
            # The user probably knows, but generally speaking automake
            # doesn't -- and in fact configure could decide
            # dynamically between two different locations.
-           $rpath = 's/\@RPATH\@//go;';
+           $rpath = '';
        }
        else
        {
-           $rpath = ('s/\@RPATH\@/-rpath \$(' . $instdirs{$onelib}
-                     . 'dir)/go;');
+           $rpath = ('-rpath $(' . $instdirs{$onelib} . 'dir)');
        }
 
        $output_rules .=
-           &file_contents_with_transform ('s/\@LTLIBRARY\@/'
-                                          . $onelib . '/go;'
-                                          . 's/\@XLTLIBRARY\@/'
-                                          . $xlib . '/go;'
-                                          . $rpath
-                                          . 's/\@XLINK\@/' . $xlink . '/go;',
-                                          'ltlibrary');
+           &file_contents_with_transform
+               (&transform ('LTLIBRARY'  => $onelib,
+                            'XLTLIBRARY' => $xlib,
+                            'RPATH'      => $rpath,
+                            'XLINK'      => $xlink),
+                'ltlibrary');
     }
 
     if ($seen_libobjs)
This page took 0.037004 seconds and 5 git commands to generate.