File: 3-4a026d7a.patch

package info (click to toggle)
wine 10.0~repack-11
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 326,452 kB
  • sloc: ansic: 4,155,993; perl: 23,800; yacc: 22,031; javascript: 15,872; makefile: 12,352; pascal: 9,519; objc: 6,923; lex: 5,273; xml: 3,219; python: 2,688; cpp: 1,741; sh: 895; java: 750; asm: 299; cs: 62
file content (31 lines) | stat: -rw-r--r-- 1,459 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
commit 4a026d7aa67aae84a733303b605f98ef1ea366ca
Author: Alexandre Julliard <julliard@winehq.org>
Date:   Thu Feb 27 11:01:48 2025 +0100

    makefiles: Add support for optionally installing external libs.

diff --git a/tools/makedep.c b/tools/makedep.c
index 5610f85c93f..a423bfd0d6f 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -3635,9 +3635,8 @@ static void output_static_lib( struct makefile *make, unsigned int arch )
     if (hybrid_arch) output_filenames_obj_dir( make, make->object_files[hybrid_arch] );
     if (!arch) output_filenames_obj_dir( make, make->unixobj_files );
     output( "\n" );
-    if (!make->extlib)
-        add_install_rule( make, make->staticlib, arch, name,
-                          strmake( "d%s%s", arch_install_dirs[arch], make->staticlib ));
+    add_install_rule( make, make->staticlib, arch, name,
+                      strmake( "d%s%s", arch_install_dirs[arch], make->staticlib ));
 }
 
 
@@ -4492,7 +4491,7 @@ static void load_sources( struct makefile *make )
     {
         /* add default install rules if nothing was specified */
         for (i = 0; i < NB_INSTALL_RULES; i++) if (make->install[i].count) break;
-        if (i == NB_INSTALL_RULES)
+        if (i == NB_INSTALL_RULES && !make->extlib)
         {
             if (make->importlib) strarray_add( &make->install[INSTALL_DEV], make->importlib );
             if (make->staticlib) strarray_add( &make->install[INSTALL_DEV], make->staticlib );