summaryrefslogtreecommitdiffstats
path: root/src/dlfcn-win32-1-configure-fixes.patch
blob: 80832d469693c673c825c356bb5ed954948bdc88 (plain)
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
This file is part of MXE.
See index.html for further information.

From: Timothy Gu <timothygu99@gmail.com>
Subject: [PATCH 1/2] configure: make script return 0 if successfully executed

diff -Naur dlfcn-win32-r19.orig/configure dlfcn-win32-r19/configure
--- dlfcn-win32-r19.orig/configure	2009-01-11 13:31:27.000000000 -0800
+++ dlfcn-win32-r19/configure	2013-11-23 20:13:14.429342371 -0800
@@ -186,7 +186,7 @@
 echo "strip:  $strip"
 echo "static: $static"
 echo "shared: $shared"
-enabled shared && {
+if (enabled shared); then
     echo "msvc:   $msvc";
     echo "strip:  $stripping";
-}
+fi

From: Timothy Gu <timothygu99@gmail.com>
Subject: [PATCH 2/2] configure: update $libdir and $incdir after parsing opts

diff -Naur dlfcn-win32-r19.orig/configure dlfcn-win32-r19/configure
--- dlfcn-win32-r19.orig/configure	2009-01-11 13:31:27.000000000 -0800
+++ dlfcn-win32-r19/configure	2013-11-23 20:15:43.777338541 -0800
@@ -111,6 +111,8 @@
     esac
 done
 
+libdir="${PREFIX}/lib"
+incdir="${PREFIX}/include"
 ar="${cross_prefix}${ar}"
 cc_default="${cross_prefix}${cc_default}"
 ranlib="${cross_prefix}${ranlib}"