[winegcc01] Don't use BINDIR to spawn subprograms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just using $PATH to find stuff makes it much easier to spawn off tools when running within the tree.

Changelog:
	Remove hardcoded BINDIR paths
diff -u -r tools/winegcc.c tools/winegcc.c
--- tools/winegcc.c	2003-08-08 06:40:26.000000000 +0100
+++ tools/winegcc.c	2003-08-13 15:02:10.000000000 +0100
@@ -132,7 +132,7 @@
     tmpobj = get_temp_file(".o");
     compargv = malloc(sizeof(char*) * (n + 10));
     i = 0;
-    compargv[i++] = BINDIR "/winegcc";
+    compargv[i++] = "winegcc";
     compargv[i++] = "-c";
     compargv[i++] = "-o";
     compargv[i++] = tmpobj;
@@ -219,7 +219,7 @@
     {
 	int has_output_name = 0;
 
-	gcc_argv[i++] = BINDIR "/winewrap";
+	gcc_argv[i++] = "winewrap";
 	if (gui_app) gcc_argv[i++] = "-mgui";
 
 	if (cpp) gcc_argv[i++] = "-C";	
diff -u -r tools/winewrap.c tools/winewrap.c
--- tools/winewrap.c	2003-08-09 18:09:11.000000000 +0100
+++ tools/winewrap.c	2003-08-13 15:01:03.000000000 +0100
@@ -507,7 +507,7 @@
     /* build winebuild's argument list */
     spec_args = malloc( (nb_arh_files + nb_dll_files + nb_obj_files + 20) * sizeof (char *) );
     j = 0;
-    spec_args[j++] = BINDIR "/winebuild";
+    spec_args[j++] = "winebuild";
     spec_args[j++] = "-o";
     spec_args[j++] = spec_c_name;
     if (create_wrapper)
@@ -577,7 +577,7 @@
     /* build wrapper winebuild's argument list */
     wspec_args = malloc( (nb_dll_files + 20) * sizeof (char *) );
     j = 0;
-    wspec_args[j++] = BINDIR "/winebuild";
+    wspec_args[j++] = "winebuild";
     wspec_args[j++] = "-o";
     wspec_args[j++] = wspec_c_name;
     wspec_args[j++] = "--exe";

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux