~ubuntu-branches/ubuntu/trusty/llvm-toolchain-snapshot/trusty-201310232150

3 by Sylvestre Ledru
* New snapshot release (3.4 release)
1
Index: llvm-toolchain-snapshot_3.3~svn181457/configure
2 by Sylvestre Ledru
* Draft of a snapshot release (3.3)
2
===================================================================
3 by Sylvestre Ledru
* New snapshot release (3.4 release)
3
--- llvm-toolchain-snapshot_3.3~svn181457.orig/configure	2013-05-07 22:31:28.000000000 +0200
4
+++ llvm-toolchain-snapshot_3.3~svn181457/configure	2013-05-08 20:26:01.000000000 +0200
5
@@ -13699,7 +13699,7 @@
2 by Sylvestre Ledru
* Draft of a snapshot release (3.3)
6
       case $llvm_cv_os_type in
7
         Linux)
8
           if test -n "$llvm_cv_oppath" ; then
9
-            LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10
+            #LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
11
                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
12
 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13
 if test "${ac_cv_search_bfd_init+set}" = set; then
3 by Sylvestre Ledru
* New snapshot release (3.4 release)
14
@@ -13795,7 +13795,7 @@
2 by Sylvestre Ledru
* Draft of a snapshot release (3.3)
15
 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
16
 ac_res=$ac_cv_search_bfd_init
17
 if test "$ac_res" != no; then
18
-  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19
+  test "$ac_res" = "none required" || true
20
 
21
 fi
22
 
3 by Sylvestre Ledru
* New snapshot release (3.4 release)
23
@@ -13831,8 +13831,8 @@
2 by Sylvestre Ledru
* Draft of a snapshot release (3.3)
24
   if test -z "$ac_lib"; then
25
     ac_res="none required"
26
   else
27
-    ac_res=-l$ac_lib
28
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29
+    ac_res="-Wl,--as-needed -l$ac_lib -Wl,--no-as-needed"
30
+    LIBS="-Wl,--as-needed -l$ac_lib -Wl,--no-as-needed $ac_func_search_save_LIBS"
31
   fi
32
   rm -f conftest.$ac_objext conftest$ac_exeext
33
 if { (ac_try="$ac_link"