Changeset 1d6ab66


Ignore:
Timestamp:
04/12/19 17:40:12 (6 years ago)
Author:
Tom Uram <turam@…>
Branches:
master, pympi
Children:
d409b8c
Parents:
33686f4
git-author:
Tom Uram <turam@…> (04/12/19 17:40:12)
git-committer:
Tom Uram <turam@…> (04/12/19 17:40:12)
Message:

Set flag for gnu99 on Linux only, to fix MacOS build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GNUmakefile

    r03ba282 r1d6ab66  
    6868endif 
    6969 
     70# Use gnu99 only on Linux 
     71# (ideally we would trigger on compiler rather than platform) 
     72ifeq ($(UNAME_S),Linux) 
     73    G99FLAG=-std=gnu99 
     74endif 
     75 
    7076FEDIR = frontend 
    71 FE_CFLAGS := -g -fPIC -O3 $(OPENMPFLAG) -std=gnu99 
     77FE_CFLAGS := -g -fPIC -O3 $(OPENMPFLAG) $(G99FLAG) 
    7278FE_CPPFLAGS := $(BASE_CPPFLAGS) -Ithirdparty/sqlite -DGENERICIO_NO_MPI 
    7379 
    7480MPIDIR = mpi 
    75 MPI_CFLAGS := -g -O3 $(OPENMPFLAG) -std=gnu99 
     81MPI_CFLAGS := -g -O3 $(OPENMPFLAG) $(G99FLAG) 
    7682MPI_CPPFLAGS := $(BASE_CPPFLAGS) 
    7783 
Note: See TracChangeset for help on using the changeset viewer.