Dash:
[t2.git] / package / develop / boomerang / progpath.patch
bloba6acf40e5397b60d3a2af8de4b7126e5258de593
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../boomerang/progpath.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- boomerang/loader/BinaryFileFactory.cpp.vanilla 2000-01-01 00:00:00.000000000 +0000
18 +++ boomerang/loader/BinaryFileFactory.cpp 2006-07-24 18:10:51.000000000 +0000
19 @@ -105,7 +105,7 @@
21 // Load the specific loader library
22 #ifndef _WIN32 // Cygwin, Unix/Linux
23 - libName = std::string("lib/lib") + libName;
24 + libName = std::string("/usr/" "lib/lib") + libName;
25 #ifdef __CYGWIN__
26 libName += ".dll"; // Cygwin wants .dll, but is otherwise like Unix
27 #else
28 --- boomerang/boomerang.cpp.vanilla 2000-01-01 00:00:00.000000000 +0000
29 +++ boomerang/boomerang.cpp 2006-07-24 17:40:50.000000000 +0000
30 @@ -893,8 +893,13 @@
31 break;
32 case 'P':
33 progPath = argv[++i];
34 +#ifdef _MSC_VER
35 if (progPath[progPath.length()-1] != '\\')
36 progPath += "\\";
37 +#else
38 + if (progPath[progPath.length()-1] != '/')
39 + progPath += "/";
40 +#endif
41 break;
42 case 'a':
43 assumeABI = true;