File: ltmain-whole-archive.diff

package info (click to toggle)
openvswitch 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 97,848 kB
  • sloc: sh: 1,643,930; ansic: 313,386; python: 27,939; xml: 21,526; makefile: 546; javascript: 191
file content (30 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/build-aux/ltmain.sh
+++ b/build-aux/ltmain.sh
@@ -7296,6 +7296,11 @@
 	continue
 	;;

+      -Wl,--whole-archive|-Wl,--no-whole-archive)
+	deplibs="$deplibs $arg"
+	continue
+	;;
+
       -Wc,*)
 	func_stripname '-Wc,' '' "$arg"
 	args=$func_stripname_result
@@ -7735,6 +7740,15 @@
 	  fi
 	  continue
 	  ;;
+	-Wl,--whole-archive|-Wl,--no-whole-archive)
+	  if test "$linkmode,$pass" = "prog,link"; then
+	    compile_deplibs="$deplib $compile_deplibs"
+	    finalize_deplibs="$deplib $finalize_deplibs"
+	  else
+	    deplibs="$deplib $deplibs"
+	  fi
+	  continue
+	  ;;
 	-l*)
 	  if test lib != "$linkmode" && test prog != "$linkmode"; then
 	    func_warning "'-l' is ignored for archives/objects"