File: xml2-config-fix.patch

package info (click to toggle)
libxml2.9 2.12.7%2Bdfsg%2Breally2.9.14-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,204 kB
  • sloc: ansic: 198,619; xml: 23,237; python: 21,469; sh: 5,062; makefile: 2,110; javascript: 639; php: 365; perl: 67
file content (39 lines) | stat: -rw-r--r-- 1,236 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
31
32
33
34
35
36
37
38
39
Description: display dynamic linking information with --libs, not static
 Don't bother about keeping support for the static variant, it's not needed
 in debian directly.
Author: Mattia Rizzolo <mattia@debian.org>
Last-Update: 2020-02-23
Bug-Debian: https://bugs.debian.org/952115

--- a/xml2-config.in
+++ b/xml2-config.in
@@ -16,8 +16,7 @@
 
   --prefix=DIR		change libxml prefix [default $prefix]
   --exec-prefix=DIR	change libxml exec prefix [default $exec_prefix]
-  --libs		print library linking information
-                        add --dynamic to print only shared libraries
+  --libs		print library dynamic linking information
   --cflags		print pre-processor and compiler flags
   --modules		module support enabled
   --help		display this help and exit
@@ -82,18 +81,7 @@
        	;;
 
     --libs)
-        if [ "$2" = "--dynamic" ]; then
-            shift
-            libs="@XML_LIBS@"
-        else
-            libs="@XML_LIBS@ @XML_PRIVATE_LIBS@ @MODULE_PLATFORM_LIBS@"
-        fi
-
-        if [ "@XML_LIBDIR@" != "-L/usr/lib" -a "@XML_LIBDIR@" != "-L/usr/lib64" ]; then
-            libs="@XML_LIBDIR@ $libs"
-        fi
-
-        libs="$libs @WIN32_EXTRA_LIBADD@"
+        libs="@XML_LIBS@"
         ;;
 
     *)