diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-10-24 19:20:05 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-10-24 21:07:39 +0200 |
commit | 96c90d18c2b0b036a90aa19337424c939391b1ac (patch) | |
tree | cdaf72906b8b51cab89cf92bbc31c164eeec909f /src/Build/Include/Makefile.inc | |
parent | 6b90e026247de0ef459d999dea40c75e7c1f9569 (diff) | |
download | VeraCrypt-96c90d18c2b0b036a90aa19337424c939391b1ac.tar.gz VeraCrypt-96c90d18c2b0b036a90aa19337424c939391b1ac.zip |
Linux/MacOSX: Better approach to avoid that jitterentropy code is optimized by the compiler
Diffstat (limited to 'src/Build/Include/Makefile.inc')
-rw-r--r-- | src/Build/Include/Makefile.inc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Build/Include/Makefile.inc b/src/Build/Include/Makefile.inc index b39021d4..ba166b69 100644 --- a/src/Build/Include/Makefile.inc +++ b/src/Build/Include/Makefile.inc @@ -14,12 +14,16 @@ $(NAME): $(NAME).a clean: @echo Cleaning $(NAME) - rm -f $(APPNAME) $(NAME).a $(OBJS) $(OBJSEX) $(OBJS:.o=.d) *.gch + rm -f $(APPNAME) $(NAME).a $(OBJS) $(OBJSEX) $(OBJSNOOPT) $(OBJS:.o=.d) $(OBJSEX:.oo=.d) $(OBJSNOOPT:.o0=.d) *.gch %.o: %.c @echo Compiling $(<F) $(CC) $(CFLAGS) -c $< -o $@ +%.o0: %.c + @echo Compiling $(<F) + $(CC) $(CFLAGS) -O0 -c $< -o $@ + %.o: %.cpp @echo Compiling $(<F) $(CXX) $(CXXFLAGS) -c $< -o $@ @@ -64,10 +68,10 @@ TR_SED_BIN := tr '\n' ' ' | tr -s ' ' ',' | sed -e 's/^,//g' -e 's/,$$/n/' | tr # Dependencies --include $(OBJS:.o=.d) $(OBJSEX:.oo=.d) +-include $(OBJS:.o=.d) $(OBJSEX:.oo=.d) $(OBJSNOOPT:.o0=.d) -$(NAME).a: $(OBJS) $(OBJSEX) +$(NAME).a: $(OBJS) $(OBJSEX) $(OBJSNOOPT) @echo Updating library $@ - $(AR) $(AFLAGS) -rcu $@ $(OBJS) $(OBJSEX) + $(AR) $(AFLAGS) -rcu $@ $(OBJS) $(OBJSEX) $(OBJSNOOPT) $(RANLIB) $@ |