forked from pld-linux/boomerang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboomerang-path.patch
37 lines (34 loc) · 1.18 KB
/
boomerang-path.patch
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
diff -urN boomerang.org/boomerang.cpp boomerang/boomerang.cpp
--- boomerang.org/boomerang.cpp 2004-07-09 00:22:50.488941368 +0200
+++ boomerang/boomerang.cpp 2004-07-09 00:37:52.418827184 +0200
@@ -212,20 +212,7 @@
int Boomerang::commandLine(int argc, const char **argv)
{
if (argc < 2) usage();
- progPath = argv[0];
- // Chop off after the last slash
- size_t j = progPath.rfind("/");
- if (j == (size_t)-1)
- j = progPath.rfind("\\");
- if (j != (size_t)-1)
- {
- // Do the chop; keep the trailing slash
- progPath = progPath.substr(0, j+1);
- }
- else {
- std::cerr << "? No slash in argv[0]!" << std::endl;
- return 1;
- }
+ progPath = BOOMDIR "/";
outputPath = "./";
// Parse switches on command line
diff -urN boomerang.org/Makefile.in boomerang/Makefile.in
--- boomerang.org/Makefile.in 2004-07-09 00:22:50.487941520 +0200
+++ boomerang/Makefile.in 2004-07-09 00:47:53.197494944 +0200
@@ -178,7 +178,7 @@
# Compile ordinary files
$(STATIC_OBJS): %.o : %.cpp
- $(CC) -c -o $@ -Iinclude $(EXTRA) $<
+ $(CC) -c -o $@ -Iinclude $(BOOMSET) $(EXTRA) $<
$(TEST_OBJS): %.o : %.cpp
$(CC) -c -o $@ -Iinclude $(EXTRA) $<