Commit 9103daf3 authored by Alexandre Julliard's avatar Alexandre Julliard

Install the wine server in $(bindir) and exec it from there.

parent c61eb035
...@@ -280,10 +280,12 @@ install_lib: dummy ...@@ -280,10 +280,12 @@ install_lib: dummy
if [ $(LIB_TARGET) = libwine.so.1.0 ]; then $(LDCONFIG); fi \ if [ $(LIB_TARGET) = libwine.so.1.0 ]; then $(LDCONFIG); fi \
fi fi
[ -d $(bindir) ] || $(MKDIR) $(bindir) [ -d $(bindir) ] || $(MKDIR) $(bindir)
$(INSTALL_PROGRAM) server/wineserver $(bindir)/wineserver
$(INSTALL_PROGRAM) windows/x11drv/wineclipsrv $(bindir)/wineclipsrv $(INSTALL_PROGRAM) windows/x11drv/wineclipsrv $(bindir)/wineclipsrv
uninstall_lib: dummy uninstall_lib: dummy
cd $(libdir); $(RM) $(LIB_TARGET) libwine.a libwine.so wine.sym cd $(libdir) && $(RM) $(LIB_TARGET) libwine.a libwine.so wine.sym
$(RM) $(bindir)/wineserver $(bindir)/wineclipsrv
$(X11OBJS) $(EMUOBJS) $(LIBOBJS): $(TOOLSUBDIRS) dummy $(X11OBJS) $(EMUOBJS) $(LIBOBJS): $(TOOLSUBDIRS) dummy
@cd `dirname $@`; $(SUBMAKE) @cd `dirname $@`; $(SUBMAKE)
......
DEFS = @DLLFLAGS@ -D__WINE__ DEFS = @DLLFLAGS@ -D__WINE__ -DBINDIR="\"$(bindir)\""
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = .. TOPOBJDIR = ..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
......
...@@ -289,12 +289,9 @@ int CLIENT_InitServer(void) ...@@ -289,12 +289,9 @@ int CLIENT_InitServer(void)
default: /* parent */ default: /* parent */
close( fd[0] ); close( fd[0] );
sprintf( buffer, "%d", fd[1] ); sprintf( buffer, "%d", fd[1] );
/*#define EXEC_SERVER*/ execl( BINDIR "/wineserver", "wineserver", buffer, NULL );
#ifdef EXEC_SERVER
execlp( "wineserver", "wineserver", buffer, NULL ); execlp( "wineserver", "wineserver", buffer, NULL );
execl( "/usr/local/bin/wineserver", "wineserver", buffer, NULL );
execl( "./server/wineserver", "wineserver", buffer, NULL ); execl( "./server/wineserver", "wineserver", buffer, NULL );
#endif
create_initial_thread( fd[1] ); create_initial_thread( fd[1] );
exit(0); exit(0);
} }
......
...@@ -23,7 +23,7 @@ int main( int argc, char *argv[] ) ...@@ -23,7 +23,7 @@ int main( int argc, char *argv[] )
/* make sure the fd is valid */ /* make sure the fd is valid */
if (fcntl( fd, F_GETFL, 0 ) == -1) goto error; if (fcntl( fd, F_GETFL, 0 ) == -1) goto error;
debug_level = 1; /* debug_level = 1; */
if (debug_level) fprintf( stderr, "Server: starting (pid=%ld)\n", (long) getpid() ); if (debug_level) fprintf( stderr, "Server: starting (pid=%ld)\n", (long) getpid() );
create_initial_thread( fd ); create_initial_thread( fd );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment