make-w32
[Top][All Lists]
Advanced

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

Re: Build GNUMake from git with mingw-w64


From: Алексей Павлов
Subject: Re: Build GNUMake from git with mingw-w64
Date: Sat, 18 May 2013 18:48:05 +0400

My patch for fix issue:

--- a/configure.ac.orig 2013-05-18 17:20:17 +0400
+++ b/configure.ac 2013-05-18 18:33:00 +0400
@@ -428,6 +428,7 @@
    [AM_CONDITIONAL([WINDOWSENV], [true])
     w32_target_env=yes
     AC_DEFINE([WINDOWS32], [1], [Use platform specific coding])
+    AC_DEFINE([OUTPUT_SYNC], [1], [Use platform specific coding])
     AC_DEFINE([HAVE_DOS_PATHS], [1], [Use platform specific coding])
   ])

--- a/w32/Makefile.am.orig 2013-05-17 15:28:31 +0400
+++ b/w32/Makefile.am 2013-05-18 18:28:05 +0400
@@ -17,7 +17,8 @@

 noinst_LIBRARIES = libw32.a

-libw32_a_SOURCES =  subproc/misc.c subproc/sub_proc.c subproc/w32err.c \
+libw32_a_SOURCES =  compat/posixfcn.c \
+            subproc/misc.c subproc/sub_proc.c subproc/w32err.c \
     pathstuff.c

 libw32_a_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/subproc -I$(top_srcdir)


2013/5/18 Eli Zaretskii <address@hidden>:
>
> [Why a personal email?]
>
>> Date: Sat, 18 May 2013 08:50:24 +0400
>> From: Алексей Павлов <address@hidden>
>>
>> If I manually add "#define OUTPUT_SYNC" to my config.h I have another error:
>>
>> mv -f .deps/getloadavg.Tpo .deps/getloadavg.Po
>> gcc  -Wall -Wextra -Wdeclaration-after-statement -Wshadow
>> -Wpointer-arith -Wbad-function-cast -g -O2   -o make.exe ar.o arscan.o
>> commands.o  default.o dir.o expand.o  file.o function.o getopt.o
>> getopt1.o implicit.o job.o  load.o loadapi.o main.o misc.o  read.o
>> remake.o rule.o  signame.o strcache.o variable.o  version.o vpath.o
>> hash.o  remote-stub.o  getloadavg.o  glob/libglob.a
>>   -Lw32 -lw32
>> job.o: In function `acquire_semaphore':
>> c:\test\nativesrc\mmake/../make_git/job.c:740: undefined reference to `fcntl'
>
> That's because the configure script was not updated to compile the
> added file w32/compat/posixfcn.c.  Patches are welcome.
>
> The latest git should compile for you without OUTPUT_SYNC defined, so
> that is another option.
>
> Once again: I suggest to use the build_w32.bat script for building a
> MinGW Make.  That script is currently the only officially supported
> way of building the Windows port of Make, and it works out of git as
> well.  It defines OUTPUT_SYNC automatically, and compiles all the
> source files needed for that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]