[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build GNUMake from git with mingw-w64
From: |
Eli Zaretskii |
Subject: |
Re: Build GNUMake from git with mingw-w64 |
Date: |
Sat, 18 May 2013 11:21:13 +0300 |
[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.