Teach Makefiles & CMake to link in the <TARGET>Info library when linking the
[oota-llvm.git] / tools / llvm-config / llvm-config.in.in
index 10a13b63c08eb5d1135a2e94f162fc861bd78194..303bffb5ea3d68f591eee501c9d08863d8fce247 100644 (file)
@@ -333,7 +333,12 @@ sub build_name_map {
     foreach my $target (@TARGETS_BUILT) {
         # FIXME: Temporary, until we don't switch all targets
         if (defined $NAME_MAP{$target.'asmprinter'}) {
-            $NAME_MAP{$target} = [$target.'asmprinter', $target.'codegen']
+            $NAME_MAP{$target} = [$target.'info',
+                                  $target.'asmprinter', 
+                                  $target.'codegen']
+        } else {
+            $NAME_MAP{$target} = [$target.'info',
+                                  $NAME_MAP{$target}[0]]
         }
     }