diff --git a/ntfsprogs/Makefile.am b/ntfsprogs/Makefile.am index 38133918..4e561dcd 100644 --- a/ntfsprogs/Makefile.am +++ b/ntfsprogs/Makefile.am @@ -1,8 +1,15 @@ +# Later gcc require -fms-extensions to work. +if GCC_NEEDS_MS_EXTENSIONS +GCCflag = -fms-extensions +else +GCCflag = +endif + # Need this to enable 64-bit (device) file access functions and parameters. if DEBUG -AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall -g -DDEBUG +AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall -g -DDEBUG $(GCCflag) else -AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall +AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -Wall $(GCCflag) endif if REALLYSTATIC