diff -ru a/makefile b/makefile --- a/makefile 2022-11-27 18:37:28.832374239 +0300 +++ b/makefile 2022-11-27 18:32:11.757520558 +0300 @@ -21,7 +21,7 @@ $(CC) $(CFLAGS) $(OBJS) $(LIBS) $(ODIR)/ccf.o -m32 -o irserver $(LDFLAGS) irserver_noccf: $(OBJS) $(ODIR)/noccf.o - $(CC) $(CFLAGS) $(OBJS) $(LIBS) $(ODIR)/noccf.o -m32 -o irserver $(LDFLAGS) + $(CC) $(CFLAGS) $(OBJS) $(LIBS) $(ODIR)/noccf.o -o irserver $(LDFLAGS) irserver64: $(OBJS64) $(ODIR64)/ccf.o $(CC) $(CFLAGS) -DX64 $(OBJS64) $(LIBS64) $(ODIR64)/ccf.o -m64 -o irserver64 $(LDFLAGS) @@ -48,7 +48,7 @@ $(ODIR)/%.o: %.c dbstruct.h fileio.h lowlevel.h network.h serio.h pictures.h remote.h makefile - $(CC) $(CPPFLAGS) $(CFLAGS) -m32 -c $< -o $@ + $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ $(ODIR64)/%.o: %.c dbstruct.h fileio.h lowlevel.h network.h serio.h pictures.h remote.h makefile diff -ru a/server.c b/server.c --- a/server.c 2022-11-27 18:36:47.986258298 +0300 +++ b/server.c 2022-11-27 18:40:10.144832096 +0300 @@ -945,21 +945,6 @@ } } #endif -#if defined (LINUX) && !defined (X64) - { - struct utsname u; - - uname (&u); - if (!strcmp (u.machine,"x86_64")) { // Running on x64 - argv[0] = "irserver64"; - if (serverdir[0]) chdir (serverdir); - if (execv ("./irserver64",argv)) { - fprintf (stderr,"Error executing the 64Bit IRServer\n"); - exit (-1); - } - } - } -#endif } new_lcd_flag = 0;